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
|
#set variables
|
||||||
GIT_COMMIT := $(shell git rev-list -1 HEAD)
|
GIT_COMMIT := $(shell git rev-list -1 HEAD)
|
||||||
ifeq ($(PREFIX),) # PREFIX is environment variable, but if it is not set, then set default value
|
ifeq ($(PREFIX),) # PREFIX is environment variable, but if it is not set, then set default value
|
||||||
PREFIX := /usr/local
|
PREFIX := /usr/local
|
||||||
endif
|
endif
|
||||||
|
|
||||||
guildgate:
|
guildgate: $(GOFILES)
|
||||||
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user