make goctl work on linux
This commit is contained in:
4
tools/goctl/Makefile.linux
Normal file
4
tools/goctl/Makefile.linux
Normal file
@@ -0,0 +1,4 @@
|
||||
version := $(shell /bin/date "+%Y-%m-%d %H:%M")
|
||||
|
||||
build:
|
||||
GOOS=linux go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" goctl.go && upx goctl
|
||||
Reference in New Issue
Block a user