mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
22 lines
558 B
Makefile
22 lines
558 B
Makefile
LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD`"
|
|
|
|
all: get tunasync tunasynctl
|
|
|
|
travis: get tunasync tunasynctl travis-package
|
|
|
|
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
|
|
|
|
travis-package: tunasync tunasynctl
|
|
tar zcf build/tunasync-linux-bin.tar.gz -C build tunasync tunasynctl
|