From dead6fe01f7599fc3b6a6b1ee77a9e69e7b325d1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 14 Dec 2024 10:47:08 -0600 Subject: new args. use forgepb for versions and dates --- Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2c7603a..10c58d0 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ all: build @echo "make enable # enable daemon on boot" @echo "make log # watch the daemon log" -build: +build: goimports GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -27,7 +27,7 @@ install: log: @#systemctl status gowebd.service - @journalctl -f -xeu gowebd.service + journalctl -f -xeu gowebd.service enable: systemctl enable gowebd.service @@ -43,17 +43,13 @@ stop: systemctl stop gowebd.service run: build - ./gowebd --port 2233 + ./gowebd --port 2233 --repomap resources/repomap --hostname test.wit.com # setcap 'cap_net_bind_service=+ep' gowebd # allow the binary to open ports below 1024 goimports: + reset goimports -w *.go -redomod: - rm -f go.* - GO111MODULE= go mod init - GO111MODULE= go mod tidy - clean: rm -f go.* rm -f go.wit.com -- cgit v1.2.3