go-deb/Makefile

64 lines
1.4 KiB
Makefile

.PHONY: debian
VERSION = $(shell git describe --tags)
DATE = $(shell date +%Y.%m.%d)
run: build
./go-deb --repo go.wit.com/apps/autotypist
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
auto-build: build
./go-deb --auto --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 main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE="off" go install -v \
-ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -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
# use the ncurses gui (only kinda works still)
ncurses: build
reset
./go-deb --gui gocui
nocui: reset build
./go-deb --gui nocui
clean:
-rm go-deb
build-go-gui-toolkits: build
./go-deb --release --auto --repo go.wit.com/apps/go-gui-toolkits
build-test-failure: build
./go-deb --release --auto --repo go.wit.com/apps/junk
build-test-keep-files: build
./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb
build-release:
go-deb --release --auto --repo go.wit.com/apps/go-deb
debian: build
./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb