cloudflared/Makefile
Chung-Ting Huang cefcb79b75 TUN-804: create Makefile recipe to build cloudflared and run tests
remove execess packages from cfsetup
2018-07-25 14:56:52 -05:00

15 lines
376 B
Makefile

VERSION := $(shell git describe --tags --always --dirty="-dev")
DATE := $(shell date -u '+%Y-%m-%d-%H%M UTC')
VERSION_FLAGS := -ldflags='-X "main.Version=$(VERSION)" -X "main.BuildTime=$(DATE)"'
.PHONY: all
all: cloudflared test
.PHONY: cloudflared
cloudflared:
go build -v $(VERSION_FLAGS) ./...
.PHONY: test
test:
go test -v -race $(VERSION_FLAGS) ./...