This commit is contained in:
nuknal
2024-05-08 17:28:20 +08:00
commit 3cd797cd4a
9 changed files with 301 additions and 0 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
.DEFAULT_GOAL := out
export DATE := $(shell date +%Y%m%d-%H:%M:%S)
export COMPILE_LDFLAGS='-s -w -X "main.BuildDate=${DATE}" '
out:
env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/sjy01-preprocessing-darwin-arm64 -ldflags=${COMPILE_LDFLAGS} *.go
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/sjy01-preprocessing -ldflags=${COMPILE_LDFLAGS} *.go
clean:
rm -rf ./bin/*