From e07c6a35fd5d2ca1b3a6c09d9781d21f676f52f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Jan 2025 07:40:24 -0600 Subject: detect that autogenpb has already been run and exit --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 26dfb7a..ffdafa2 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -full: clean auto goimports vet build test +full: install clean auto goimports vet build test @echo everything worked and the example ran test: goimports build test @@ -20,6 +20,7 @@ recover: build: GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + # autogen uses autogen to build. keep a working copy somewhere cp -f autogenpb autogenpb.${BUILDTIME} bak: -- cgit v1.2.3