summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
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