From f7252645ba8cd1844a20cad982c8fc2d9dc3c035 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 27 Feb 2017 11:53:03 +0000 Subject: [PATCH] Make the Makefile build rclone with the correct version number by default --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0091c4d28..08e8909af 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,12 @@ BETA_URL := http://beta.rclone.org/$(TAG)/ # Only needed for Go 1.5 export GO15VENDOREXPERIMENT=1 +.PHONY: rclone + rclone: - go install -v + touch fs/version.go + go install -v --ldflags "-s -X github.com/ncw/rclone/fs.Version=$(TAG)" + cp -av `go env GOPATH`/bin/rclone . vars: @echo SHELL="'$(SHELL)'"