wings/Makefile

17 lines
481 B
Makefile
Raw Normal View History

2020-05-17 23:12:42 +00:00
build:
2020-10-17 20:52:38 +00:00
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
2017-06-27 10:42:56 +00:00
debug:
go build -race
2021-01-13 04:07:00 +00:00
sudo ./wings --debug --ignore-certificate-errors --config config.yml
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