Skip to content

Commit

Permalink
update makefile support env tag and hash
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jul 29, 2018
1 parent e2baa56 commit 6c5d46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CMD = sshw
GIT_TAG := $(shell (git describe --abbrev=0 --tags 2> /dev/null || echo v0.0.0) | head -n1)
GIT_HASH := $(shell (git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1)
GIT_TAG := $(shell (git describe --abbrev=0 --tags 2> /dev/null || echo $${SSHW_GIT_TAG:-'v0.0.0'}) | head -n1)
GIT_HASH := $(shell (git show-ref --head --hash=8 2> /dev/null || echo $${SSHW_GIT_HASH:-'00000000'}) | head -n1)
SRC_DIR := $(shell ls -d */|grep -vE 'vendor')

PLATFORMS := linux/amd64 darwin/amd64
Expand Down

0 comments on commit 6c5d46d

Please sign in to comment.