go-zero/tools/goctl/Makefile
2020-07-29 17:12:04 +08:00

5 lines
147 B
Makefile

version := $(shell /bin/date "+%Y-%m-%d %H:%M")
build:
go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" goctl.go && upx goctl