1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 14:36:47 +00:00

chore(cmd): added git hash and build date to version

这个提交包含在:
bigeagle
2016-06-15 14:26:32 +08:00
父节点 d292f9b0e3
当前提交 03fdaeeb7f
共有 6 个文件被更改,包括 77 次插入4 次删除

16
Makefile 普通文件
查看文件

@@ -0,0 +1,16 @@
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