actually update on file change

This commit is contained in:
stryan 2021-03-31 16:31:44 -04:00
parent 0ec1696c34
commit f5abee1c36
1 changed files with 2 additions and 2 deletions

View File

@ -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: