actually update on file change
This commit is contained in:
parent
0ec1696c34
commit
f5abee1c36
4
Makefile
4
Makefile
@ -1,11 +1,11 @@
|
||||
|
||||
GOFILES=$(wildcard *.go)
|
||||
#set variables
|
||||
GIT_COMMIT := $(shell git rev-list -1 HEAD)
|
||||
ifeq ($(PREFIX),) # PREFIX is environment variable, but if it is not set, then set default value
|
||||
PREFIX := /usr/local
|
||||
endif
|
||||
|
||||
guildgate:
|
||||
guildgate: $(GOFILES)
|
||||
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user