From cae26ecb18db714e5f7f6b005a2a8179f368de9f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 16 Nov 2024 00:07:53 -0600 Subject: fix build --- Makefile | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 69f5f59..b61d14a 100644 --- a/Makefile +++ b/Makefile @@ -1,37 +1,7 @@ VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) -all: - @echo to test: 'make test' - @echo open test win: 'make tempWin' - @echo - @echo run this from the autotypist dir: - @echo " GUIRELEASE_REASON=notsure guireleaser" - @echo then: - @echo " make prepare-release" - @echo then: - @echo " make showNext" - @echo " make doRelease" - @echo loop until done - -# single: build -# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run -# dump: -# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" --dry-run --dump-versions -# single-really-do-it: build -# ./guireleaser go.wit.com/apps/go-clone --increment --release --reason "testing guireleaser" - -stderr: build - echo "writing to /tmp/guireleaser.stderr" - ./guireleaser >/tmp/guireleaser.stderr 2>&1 - -prepare-release: - reset - make list-release-notdone - make curl-incrementAllTargetVersions - make list-release-notdone - make curl-whitelist-stuff - make findNext - make showNext +all: build goimports: goimports -w *.go @@ -45,14 +15,14 @@ build: echo "build it!" -rm resources/*.so cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ - GO111MODULE=off go build -v -x -ldflags " \ - -X main.VERSION=${VERSION}" + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" install: -rm resources/*.so cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ - GO111MODULE=off go install -v -x -ldflags " \ - -X main.VERSION=${VERSION}" + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" test: build GUIRELEASE_REASON='test build' ./guireleaser -- cgit v1.2.3