diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:07:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:07:53 -0600 |
| commit | cae26ecb18db714e5f7f6b005a2a8179f368de9f (patch) | |
| tree | 59ddd99ed45ab2affa661d48d65f0c3b1b9e8f3e /Makefile | |
| parent | 9cf14144ed3ab6a7b14553894b2025f2c2b5ce16 (diff) | |
fix buildv0.22.15
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 42 |
1 files changed, 6 insertions, 36 deletions
@@ -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 |
