.PHONY: debian go-deb VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%s) run: clean goimports vet install go-deb # builds a .deb of go-deb and writes the file here in this directory go-deb: go-deb go-deb-keep-files: go-deb --keep-files vet: @GO111MODULE=off go vet @echo this go library package builds okay auto-build: build ./go-deb --repo go.wit.com/apps/autotypist build: goimports vet -rm resources/*.so touch resources/blank.so GO111MODULE=off go build -v -x \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" install: goimports GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" build-darwin: GOOS=darwin GOARCH=amd64 GO111MODULE=off go build -v -o wit-darwin.x86 \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}" build-darwin-arm64: GOOS=darwin GOARCH=arm64 GO111MODULE=off go build -v -o wit-darwin.arm \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}" build-windows: GOOS=windows GOARCH=amd64 GO111MODULE=off go build -v -o wit.exe \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}" goimports: goimports -w *.go redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy reset: # clear your terminal reset # use the ncurses gui (only kinda works still) ncurses: build reset ./go-deb --gui gocui nocui: reset build ./go-deb --gui nocui clean: rm -f go.* rm -f go-deb rm -f resources/*.so touch resources/blank.so build-go-gui-toolkits: build ./go-deb --release build-test-failure: build ./go-deb --release build-test-keep-files: build ./go-deb --keep-files build-release: go-deb --release debian: build ./go-deb --keep-files test2: go-deb go.wit.com/apps/utils/go-gui-toolkits --dir /tmp