wings/Makefile
2020-10-17 13:52:38 -07:00

13 lines
387 B
Makefile

build:
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(pwd)" -o build/wings_linux_amd64 -v wings.go
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(pwd)" -o build/wings_linux_arm64 -v wings.go
compress:
upx --brute build/wings_*
cross-build: clean build compress
clean:
rm -rf build/wings_*
.PHONY: all build compress clean