1 Star 0 Fork 76

xiaojian-hong/yomo

forked from YoMo/yomo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 936 Bytes
一键复制 编辑 原始数据 按行查看 历史
C.C 提交于 2020-12-29 13:25 . feat/plugin: use GOPATH to solve plugin issue
GO ?= go
GOFMT ?= gofmt "-s"
GOFILES := $(shell find . -name "*.go")
VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/)
YOMO_VERSION ?= $(shell git describe --tags 2>/dev/null || git rev-parse --short HEAD)
DATE_FMT = +%Y-%m-%d
ifdef SOURCE_DATE_EPOCH
BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u "$(DATE_FMT)")
else
BUILD_DATE ?= $(shell date "$(DATE_FMT)")
endif
GO_LDFLAGS := -X github.com/yomorun/yomo/internal/cmd.Version=$(YOMO_VERSION) $(GO_LDFLAGS)
GO_LDFLAGS := -X github.com/yomorun/yomo/internal/cmd.Date=$(BUILD_DATE) $(GO_LDFLAGS)
.PHONY: fmt
fmt:
$(GOFMT) -w $(GOFILES)
vet:
$(GO) vet $(VETPACKAGES)
build:
$(GO) build -o bin/yomo -ldflags "-s -w ${GO_LDFLAGS}" github.com/yomorun/yomo/cmd/yomo
install:
$(GO) install -ldflags "-s -w ${GO_LDFLAGS}" github.com/yomorun/yomo/cmd/yomo
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiaojian-hong/yomo.git
git@gitee.com:xiaojian-hong/yomo.git
xiaojian-hong
yomo
yomo
master

搜索帮助