summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 466aee7..55c3e98 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,14 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
-all: portmap.pb.go goimports vet build
+all: portmap.pb.go build
./gus --version
- ./gus --no-gui
- # ./gus --gui gocui >/tmp/gocui.log 2>&1
+ ./gus --no-gui --config /etc/gus/gus.text
-build: goimports
+gocui: build
+ ./gus --gui gocui --config /etc/gus/gus.text >/tmp/gocui.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}"
@@ -36,3 +38,6 @@ clean:
portmap.pb.go: portmap.proto
autogenpb --proto portmap.proto
+
+list:
+ curl "http://localhost:2522/list"