Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make: command: Command not found #4132

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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