Skip to content

Commit

Permalink
fix Makefile
Browse files Browse the repository at this point in the history
embed version string at make
  • Loading branch information
fujiwara committed Nov 21, 2014
1 parent d0f8797 commit 542b9b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -25,3 +25,4 @@ _testmain.go

*~
pkg/*
cmd/stretcher/stretcher
5 changes: 3 additions & 2 deletions Makefile
@@ -1,8 +1,9 @@
GIT_VER := $(shell git describe --tags)
DATE := $(shell date +%Y-%m-%dT%H:%M:%S%z)

all: test
go get github.com/fujiwara/stretcher/cmd/stretcher
all:
cd cmd/stretcher && go build -ldflags "-X main.version ${GIT_VER} -X main.buildDate ${DATE}" && install ./stretcher ${GOPATH}/bin


.PHONY: test get-deps binary
test:
Expand Down

0 comments on commit 542b9b5

Please sign in to comment.