init
This commit is contained in:
9
Makefile
Normal file
9
Makefile
Normal 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/*
|
||||
Reference in New Issue
Block a user