Skip to content

Commit

Permalink
fix make process
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWC committed Jul 28, 2015
1 parent a85efcb commit 5691493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GIT_HASH=$(shell git rev-parse HEAD)
DATE_TAG=$(shell date +%m%d%y-%H:%M:%S)
VERSION=$(shell git log -n1 --pretty="format:%d" | sed "s/, /\n/g" | grep tag: | sed "s/tag: \|)//g")
TAG_CMD := git log -n1 --pretty="format:%d" | sed "s/, /\n/g" | grep tag: | sed "s/tag: \|)//g"
VERSION=$(shell $(TAG_CMD))

build:
go build -ldflags="-X main.GitHash $(GIT_HASH) -X main.BuildDate $(DATE_TAG) -X main.Version $(VERSION)"
Expand Down

0 comments on commit 5691493

Please sign in to comment.