2020-05-17 23:12:42 +00:00
|
|
|
build:
|
2020-08-06 03:13:01 +00:00
|
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags "all=-trimpath=$(PWD)" -o build/wings_linux_amd64 -v wings.go
|
2017-06-27 10:42:56 +00:00
|
|
|
|
2020-05-17 23:12:42 +00:00
|
|
|
compress:
|
|
|
|
upx --brute build/wings_*
|
2017-06-27 10:42:56 +00:00
|
|
|
|
2020-05-17 23:12:42 +00:00
|
|
|
cross-build: clean build compress
|
2017-06-27 10:42:56 +00:00
|
|
|
|
2020-05-17 23:12:42 +00:00
|
|
|
clean:
|
2020-06-19 04:05:00 +00:00
|
|
|
rm -rf build/wings_*
|
|
|
|
|
|
|
|
.PHONY: all build compress clean
|