From 28bf6a27f9df6128a8f70917ca21d05cedbfb135 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Nov 2024 10:52:00 -0600 Subject: maybe right ldflags --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 378480a..d36a0bd 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION = $(shell git describe --tags) -DATE = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%Y.%m.%d) run: build @#./go-clone --work github.com/rclone/rclone @@ -25,7 +25,7 @@ no-gui: build build: GO111MODULE=off go build -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" build-go-1.21: @#GO111MODULE=off /usr/lib/go-1.21/bin/go build -v -ldflags "-X main.VERSION=${VERSION}" @@ -34,7 +34,7 @@ build-go-1.21: install: GO111MODULE=off go install -v \ - -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}" + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" goimports: goimports -w *.go -- cgit v1.2.3