go-deb/Makefile

92 lines
2.9 KiB
Makefile

.PHONY: debian
VERSION = $(shell git describe --tags)
run: build
./go-deb --repo go.wit.com/apps/autotypist
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
no-gui: build
./go-deb --no-gui --repo go.wit.com/apps/autotypist
build:
-rm resources/*.so
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins
GO111MODULE="off" go build -v \
-ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE="off" go install -v \
-ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
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
build-go-gui-toolkits: build
./go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
build-test-failure: build
./go-deb --release --no-gui --repo go.wit.com/apps/junk
build-test-keep-files: build
./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb
build-all:
go-deb --no-gui --repo go.wit.com/apps/go-deb
go-deb --no-gui --repo go.wit.com/apps/go-clone
go-deb --no-gui --repo go.wit.com/apps/autotypist
go-deb --no-gui --repo go.wit.com/apps/virtigoctl
go-deb --no-gui --repo go.wit.com/apps/virtigo
go-deb --no-gui --repo go.wit.com/apps/autotypist
go-deb --no-gui --repo go.wit.com/apps/guireleaser
go-deb --no-gui --repo go.wit.com/apps/gowebd
go-deb --no-gui --repo go.wit.com/apps/networkQuality
go-deb --no-gui --repo go.wit.com/apps/helloworld
go-deb --no-gui --repo go.wit.com/apps/basicwindow
go-deb --no-gui --repo go.wit.com/apps/gadgetwindow
go-deb --no-gui --repo go.wit.com/apps/powerpaneld
go-deb --no-gui --repo go.wit.com/lib/daemons/virtigod
go-deb --no-gui --repo go.wit.com/apps/control-panel-cloudflare
go-deb --no-gui --repo go.wit.com/apps/control-panel-dns
go-deb --no-gui --repo go.wit.com/apps/control-panel-droplet
go-deb --no-gui --repo go.wit.com/apps/control-panel-vpn
# go-deb --no-gui --repo golang.org/x/tools/cmd/goimports
build-releases:
-go-deb --release --no-gui --repo go.wit.com/apps/autotypist
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-dns
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-digitalocean
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-cloudflare
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-vpn
-go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
-go-deb --release --no-gui --repo go.wit.com/apps/guireleaser
-go-deb --release --no-gui --repo go.wit.com/apps/go.wit.com
-go-deb --release --no-gui --repo go.wit.com/apps/helloworld
-go-deb --release --no-gui --repo go.wit.com/apps/go-deb
debian: build
./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb