From 57c61847c02e9b2f3c2e36f9c77c9dcb8da01b8c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Mar 2024 16:45:49 -0600 Subject: make a .git repo --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3