tome_client/Makefile

17 lines
446 B
Makefile
Raw Normal View History

2021-10-01 12:53:36 -04:00
#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
2021-10-04 11:28:42 -04:00
client: $(wildcard src/client/*.go)
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)" ./src/client
client2: $(wildcard src/client2/*.go)
go build -ldflags "-X main.GitCommit=$(GIT_COMMIT)" ./src/client2
2021-10-01 12:53:36 -04:00
clean:
rm -f client client2