diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..347a510 --- /dev/null +++ b/Makefile @@ -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 +