1 Star 0 Fork 2

Lucy/yarc

forked from DiDi-opensource/yarc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangrunxuan 提交于 2023-12-27 14:49 . init
APP_VERSION = $(shell cat VERSION)
COMMIT_ID = $(shell git describe --dirty --long --always)
BUILD_TIME = $(shell date "+%F %T %Z")
ifeq ($(DEBUG), 1)
GCFLAGS = all=-N -l
endif
BUILDINFO_PKG = github.com/didi/yarc/internal/buildinfo
LDFLAGS = -X '$(BUILDINFO_PKG).Version=$(APP_VERSION)' \
-X '$(BUILDINFO_PKG).CommitID=$(COMMIT_ID)' \
-X '$(BUILDINFO_PKG).BuildTime=$(BUILD_TIME)'
all: yarc
yarc: cmd/yarc recorder
@echo "> build yarc..."
@echo "Version: $(APP_VERSION)"
go build -gcflags="$(GCFLAGS)" -ldflags="$(LDFLAGS)" -o $@ ./cmd/yarc
@echo "> done"
@echo ""
recorder:
$(MAKE) -C internal/recorder
clean:
-$(MAKE) -C internal/recorder clean
-$(RM) yarc
.PHONY: all recorder clean
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wei-lianting/yarc.git
git@gitee.com:wei-lianting/yarc.git
wei-lianting
yarc
yarc
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385