actually add makefile
This commit is contained in:
parent
5396a5e44d
commit
e090810f17
14
Makefile
Normal file
14
Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#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
|
||||||
|
|
||||||
|
all: tome_ws
|
||||||
|
|
||||||
|
tome_ws: $(wildcard *.go)
|
||||||
|
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f tome_ws
|
||||||
|
|
Loading…
Reference in New Issue
Block a user