Skip to content

Commit

Permalink
fix: make: command: Command not found (#4132)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill authored May 10, 2024
1 parent 057bae9 commit 7c730b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/goctl/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
build:
go build -ldflags="-s -w" goctl.go
$(if $(shell command -v upx), upx goctl)
$(if $(shell command -v upx || which upx), upx goctl)

mac:
GOOS=darwin go build -ldflags="-s -w" -o goctl-darwin goctl.go
$(if $(shell command -v upx), upx goctl-darwin)
$(if $(shell command -v upx || which upx), upx goctl-darwin)

win:
GOOS=windows go build -ldflags="-s -w" -o goctl.exe goctl.go
$(if $(shell command -v upx), upx goctl.exe)
$(if $(shell command -v upx || which upx), upx goctl.exe)

linux:
GOOS=linux go build -ldflags="-s -w" -o goctl-linux goctl.go
$(if $(shell command -v upx), upx goctl-linux)
$(if $(shell command -v upx || which upx), upx goctl-linux)

image:
docker build --rm --platform linux/amd64 -t kevinwan/goctl:$(version) .
Expand Down

0 comments on commit 7c730b9

Please sign in to comment.