gowebd/Makefile

37 lines
800 B
Makefile

all:
@echo "make run # will build and run the daemon here"
@echo "make debian # will build a debian package"
@echo "make restart # restart the daemon"
@echo "make enable # enable daemon on boot"
@echo "make log # watch the daemon log"
log:
@#systemctl status gowebd.service
@journalctl -f -xeu gowebd.service
enable:
su -c "systemctl enable gowebd.service"
restart:
su -c "systemctl stop gowebd.service"
su -c "systemctl start gowebd.service"
run:
git pull
echo "build it!"
GO111MODULE=off go build -v -x
./go.wit.com
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
goimports:
goimports -w *.go
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
# makes a .deb package
debian:
go-deb --no-gui --repo go.wit.com/apps/go.wit.com