1 Star 0 Fork 1

华科开放原子开源俱乐部/tunasync

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD`"
ARCH ?= linux-amd64
ARCH_LIST = $(subst -, ,$(ARCH))
GOOS = $(word 1, $(ARCH_LIST))
GOARCH = $(word 2, $(ARCH_LIST))
BUILDBIN = tunasync tunasynctl
all: $(BUILDBIN)
build-$(ARCH):
mkdir -p $@
$(BUILDBIN): % : build-$(ARCH) build-$(ARCH)/%
$(BUILDBIN:%=build-$(ARCH)/%) : build-$(ARCH)/% : cmd/%
GOOS=$(GOOS) GOARCH=$(GOARCH) go get ./$<
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $@ -ldflags ${LDFLAGS} github.com/tuna/tunasync/$<
test:
go test -v -covermode=count -coverprofile=profile.cov ./...
build-test-worker:
go test -c -covermode=count ./worker
.PHONY: all test $(BUILDBIN) build-test-worker
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hust-open-atom-club/tunasync.git
git@gitee.com:hust-open-atom-club/tunasync.git
hust-open-atom-club
tunasync
tunasync
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385