From fba2d24625d844b7f6115a6cb86f7fc6e1f9e3d5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 10 Mar 2025 03:12:09 -0500 Subject: start making it work in the real world --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Makefile') 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" -- cgit v1.2.3