go-deb/Makefile

43 lines
618 B
Makefile

.PHONY: debian
run: build
./go-deb --no-gui --repo go.wit.com/apps/control-panel-dns
dns: build
./go-deb --repo go.wit.com/apps/control-panel-dns
build:
-cp ~/go/src/go.wit.com/toolkits/*.so resources/
GO111MODULE="off" go build -v
goimports:
goimports -w *.go
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
reset:
# clear your terminal
reset
gocui: build
reset
./go-deb --gui gocui >/tmp/witgui.log.stderr 2>&1
nocui: reset build
./go-deb --gui nocui
clean:
-rm go-deb
-rm -rf files/
-rm -f resources/*.so
-rm *.deb
debian:
cd debian && make
mirrors:
-wit mirrors