Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
更新makefile定义
  • Loading branch information
xxjwxc committed Aug 19, 2020
1 parent a6b0dc3 commit ef72597
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ tar: # 打包
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/*
- rm -rf err/
- rm gormt
- rm gormt.exe
- rm gormt_linux.zip
- rm gormt_mac.zip
- rm gormt_windows.zip
test ! -d model/ || rm -rf model/*
test ! -d err/ || rm -rf err/
test ! -f gormt || rm gormt
test ! -f gormt.exe || rm gormt.exe
test ! -f gormt_linux.zip || rm gormt_linux.zip
test ! -f gormt_mac.zip || rm gormt_mac.zip
test ! -f gormt_windows.zip || rm gormt_windows.zip

0 comments on commit ef72597

Please sign in to comment.