summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e997ae0..abbc63e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+VERSION = $(shell git describe --tags)
+
run: build
- ./go-clone --repo github.com/rclone/rclone
+ ./go-clone github.com/rclone/rclone
vet:
@GO111MODULE=off go vet
@@ -9,7 +11,8 @@ no-gui: build
./go-clone --no-gui
build:
- GO111MODULE="off" go build -v
+ # GO111MODULE=off go build -v -ldflags "-X main.VERSION=${VERSION}" -ldflags "-X main.GUIVERSION=${VERSION}"
+ GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}"
install:
GO111MODULE="off" go install -v