diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 |
