makefile
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,8 +1,20 @@
|
|||||||
|
all:
|
||||||
|
make windows
|
||||||
|
make mac
|
||||||
|
make linux
|
||||||
|
make clear
|
||||||
windows:
|
windows:
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
|
||||||
|
tar czvf gormt_windows.zip gormt.exe config.yml
|
||||||
mac:
|
mac:
|
||||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
|
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
|
||||||
|
tar czvf gormt_mac.zip gormt config.yml
|
||||||
linux:
|
linux:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
|
||||||
|
tar czvf gormt_linux.zip gormt config.yml
|
||||||
|
clear:
|
||||||
|
rm gormt
|
||||||
|
rm gormt.exe
|
||||||
|
rm -rf model/*
|
||||||
|
rm -rf err/
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ is_out_sql : false # 是否输出 sql 原信息
|
|||||||
is_out_func : true # 是否输出 快捷函数
|
is_out_func : true # 是否输出 快捷函数
|
||||||
is_url_tag : true # 是否打web标记
|
is_url_tag : true # 是否打web标记
|
||||||
is_foreign_key : true # 是否导出外键关联
|
is_foreign_key : true # 是否导出外键关联
|
||||||
is_gui : true # 是否ui模式显示
|
is_gui : false # 是否ui模式显示
|
||||||
mysql_info:
|
mysql_info:
|
||||||
host : 127.0.0.1
|
host : 127.0.0.1
|
||||||
port : 3306
|
port : 3306
|
||||||
|
|||||||
Reference in New Issue
Block a user