tome_client/Makefile
2021-10-01 12:53:36 -04:00

17 lines
430 B
Makefile

#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: client client2
client: $(wildcard client/*.go)
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)" ./client
client2: $(wildcard client2/*.go)
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)" ./client2
clean:
rm -f client client2