experimental makefile, will not work for all platforms due to CGO dependencies

This commit is contained in:
crgimenes
2023-02-08 01:39:42 -03:00
parent a195a65f7b
commit 0677230c8f

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
@all:
mkdir -p dist
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
go build -a -ldflags '-extldflags "-static" -s -w' -o dist/neko_windows_amd64.exe
#GOOS=linux GOARCH=amd64 \
#go build -o dist/neko_linux_amd64
GOOS=darwin GOARCH=arm64 \
go build -a -ldflags '-s -w' -o dist/neko_darwin_arm64
@clean:
rm -rf dist