From d827c398f00e965f5b57447c7d730f96442e1173 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 8 Oct 2024 11:36:46 -0500 Subject: try to rename as gowebd put the HTML assets raw in the binary also I'm how old and still committed a binary. squashed Signed-off-by: Jeff Carr --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5b0506e..7f81a70 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VERSION = $(shell git describe --tags) + all: @echo "make run # will build and run the daemon here" @echo "make debian # will build a debian package" @@ -19,9 +21,9 @@ restart: run: git pull echo "build it!" - GO111MODULE=off go build -v -x - ./go.wit.com - # setcap 'cap_net_bind_service=+ep' go.wit.com # allow the binary to open ports below 1024 + GO111MODULE=off go build -v -x -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}" + ./gowebd --port 2233 + # setcap 'cap_net_bind_service=+ep' gowebd # allow the binary to open ports below 1024 goimports: goimports -w *.go @@ -31,6 +33,11 @@ redomod: GO111MODULE= go mod init GO111MODULE= go mod tidy +clean: + rm -f go.* + rm -f go.wit.com + rm -f gowebd + # makes a .deb package debian: - go-deb --no-gui --repo go.wit.com/apps/go.wit.com + go-deb --no-gui --repo go.wit.com/apps/gowebd -- cgit v1.2.3