summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3780da9..d753ca0 100644
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,20 @@ BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi)
REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi)
-all: goimports build
- ./zookeeper
+all: goimports gocui
+ # ./zookeeper
+
+vet:
+ @GO111MODULE=off go vet
+ @echo this go binary package builds okay
nogui:
./zookeeper --gui nocui
-build:
+gocui: build
+ ./zookeeper --gui gocui >/tmp/forge.log 2>&1
+
+build: goimports vet
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"