1 Star 0 Fork 62

痛恨小朋友/gmanager

forked from goflyfox/gmanager 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 823 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangbiao 提交于 2019-12-17 14:22 . add build flags
# note: call scripts from /deploy
# project name
PROJECTNAME=$(shell basename "$(PWD)")
# project path
ROOT=$(shell pwd)
.PHONY: help
all: help
help: Makefile
@echo
@echo " Choose a command run in "$(PROJECTNAME)":"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo
## vendor: go mod vendor
## tidy: go mod tidy
## build: go build -mod=vendor
## run: go run main.go
## mod: update or clear mod pkg, do=tidy or do=vendor
mod:
@echo "use mod"
@./deploy/pkg.sh $(ROOT) $(do)
vendor:
@echo "use mod vendor"
@export GO111MODULE=on
@export GOPROXY=https://goproxy.io
@go mod vendor
tidy:
@echo "use mod tidy"
@export GO111MODULE=on
@export GOPROXY=https://goproxy.io
@go mod tidy
#go build -ldflags "-s -w"
build:
@go build -mod=vendor
run:
@echo "go run main.go"
@go run main.go
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/azuresoft/gmanager.git
[email protected]:azuresoft/gmanager.git
azuresoft
gmanager
gmanager
master

搜索帮助