.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-release: 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