1 Star 0 Fork 6

黄苏伟/mysql_markdown

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 858 Bytes
一键复制 编辑 原始数据 按行查看 历史
AlicFeng 提交于 2020-03-27 10:56 . update:build:Compression program
GC=go
MAIN_GO_FILE=mysql_markdown.go
RELEASE_DIR=release
build-unix :
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ${GC} build -ldflags -w -o ${RELEASE_DIR}/mysql_markdown_unix ${MAIN_GO_FILE}
build-mac :
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ${GC} build -ldflags -w -o ${RELEASE_DIR}/mysql_markdown_mac ${MAIN_GO_FILE}
build-win :
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 ${GC} build -ldflags -w -o ${RELEASE_DIR}/mysql_markdown_win ${MAIN_GO_FILE}
build :
make build-unix
make build-mac
make build-win
release :
make build
upx release/mysql_markdown_*
tar -czvf release/mysql_markdown_mac.tar.gz -C release/ mysql_markdown_mac
tar -czvf release/mysql_markdown_unix.tar.gz -C release/ mysql_markdown_unix
tar -czvf release/mysql_markdown_win.tar.gz -C release/ mysql_markdown_win
clean :
@if [ -d ${RELEASE_DIR} ] ; then rm -rf ${RELEASE_DIR}; fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/huang-suwei/mysql_markdown.git
git@gitee.com:huang-suwei/mysql_markdown.git
huang-suwei
mysql_markdown
mysql_markdown
master

搜索帮助