fix auto config defile
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,16 +1,18 @@
|
||||
all:
|
||||
make windows
|
||||
make mac
|
||||
make linux
|
||||
all: # 构建
|
||||
make tar
|
||||
make clear
|
||||
windows:
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
|
||||
tar czvf gormt_windows.zip gormt.exe config.yml
|
||||
mac:
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
|
||||
tar czvf gormt_mac.zip gormt config.yml
|
||||
linux:
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
|
||||
tar: # 打包
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
|
||||
tar czvf gormt_windows.zip gormt.exe config.yml
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
|
||||
tar czvf gormt_mac.zip gormt config.yml
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
|
||||
tar czvf gormt_linux.zip gormt config.yml
|
||||
clear:
|
||||
- rm -rf model/*
|
||||
|
||||
Reference in New Issue
Block a user