actually update on file change

This commit is contained in:
stryan 2021-03-31 16:31:44 -04:00
parent 0ec1696c34
commit f5abee1c36

View File

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