Makefile 471 B

12345678910111213141516171819
  1. LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD`"
  2. all: get tunasync tunasynctl
  3. get:
  4. go get ./cmd/tunasync
  5. go get ./cmd/tunasynctl
  6. build:
  7. mkdir -p build
  8. tunasync: build
  9. go build -o build/tunasync -ldflags ${LDFLAGS} github.com/tuna/tunasync/cmd/tunasync
  10. tunasynctl: build
  11. go build -o build/tunasynctl -ldflags ${LDFLAGS} github.com/tuna/tunasync/cmd/tunasynctl
  12. test:
  13. go test -v -covermode=count -coverprofile=profile.cov ./...