1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 14:36:47 +00:00
文件
tunasync/Makefile
2020-03-13 17:24:57 +08:00

20 行
471 B
Makefile

LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD`"
all: get tunasync tunasynctl
get:
go get ./cmd/tunasync
go get ./cmd/tunasynctl
build:
mkdir -p build
tunasync: build
go build -o build/tunasync -ldflags ${LDFLAGS} github.com/tuna/tunasync/cmd/tunasync
tunasynctl: build
go build -o build/tunasynctl -ldflags ${LDFLAGS} github.com/tuna/tunasync/cmd/tunasynctl
test:
go test -v -covermode=count -coverprofile=profile.cov ./...