Skip to content

Commit

Permalink
update goctl makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Aug 30, 2020
1 parent 431be8e commit befdaab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions tools/goctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ version := $(shell /bin/date "+%Y-%m-%d %H:%M")

build:
go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" goctl.go && upx goctl
mac:
GOOS=darwin go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl-darwin goctl.go
win:
GOOS=windows go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl-windows goctl.go
linux:
GOOS=linux go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl-linux goctl.go
4 changes: 0 additions & 4 deletions tools/goctl/Makefile.linux

This file was deleted.

0 comments on commit befdaab

Please sign in to comment.