Skip to content

Commit

Permalink
Add the Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Sep 12, 2015
1 parent 797b810 commit 1132c06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
VERSION := $(shell git describe --tags)

build:
go build -o dashing -ldflags "-X main.version=${VERSION}" dashing.go

install: build
install -d ${DESTDIR}/usr/local/bin/
install -m 755 ./dashing ${DESTDIR}/usr/local/bin/dashing

test:
go test ./...

clean:
rm -f ./dashing
rm -f ./dashing.test

.PHONY: build test install clean

0 comments on commit 1132c06

Please sign in to comment.