go-deb/Makefile

64 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2024-02-11 01:00:05 -06:00
.PHONY: debian
2024-11-07 07:03:13 -06:00
VERSION = $(shell git describe --tags)
2024-11-15 10:51:45 -06:00
DATE = $(shell date +%Y.%m.%d)
2024-11-07 07:03:13 -06:00
2024-02-11 01:00:05 -06:00
run: build
./go-deb --repo go.wit.com/apps/autotypist
2024-03-02 15:58:56 -06:00
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
2024-11-16 00:05:07 -06:00
auto-build: build
./go-deb --auto --repo go.wit.com/apps/autotypist
2024-02-11 01:00:05 -06:00
build:
-rm resources/*.so
2024-11-07 07:03:13 -06:00
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins
2024-11-07 07:03:13 -06:00
GO111MODULE="off" go build -v \
2024-11-15 10:51:45 -06:00
-ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
2024-02-11 01:00:05 -06:00
2024-02-20 23:13:26 -06:00
install:
2024-11-07 07:03:13 -06:00
GO111MODULE="off" go install -v \
2024-11-15 10:51:45 -06:00
-ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
2024-02-20 23:13:26 -06:00
2024-02-11 01:00:05 -06:00
goimports:
goimports -w *.go
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
reset:
# clear your terminal
reset
2024-11-16 09:49:49 -06:00
# use the ncurses gui (only kinda works still)
ncurses: build
2024-02-11 01:00:05 -06:00
reset
2024-11-16 09:49:49 -06:00
./go-deb --gui gocui
2024-02-11 01:00:05 -06:00
nocui: reset build
./go-deb --gui nocui
clean:
-rm go-deb
2024-02-20 23:13:26 -06:00
build-go-gui-toolkits: build
2024-11-16 00:05:07 -06:00
./go-deb --release --auto --repo go.wit.com/apps/go-gui-toolkits
2024-02-23 22:07:13 -06:00
build-test-failure: build
2024-11-16 00:05:07 -06:00
./go-deb --release --auto --repo go.wit.com/apps/junk
2024-02-23 22:07:13 -06:00
build-test-keep-files: build
2024-11-16 00:05:07 -06:00
./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb
build-release:
2024-11-16 00:05:07 -06:00
go-deb --release --auto --repo go.wit.com/apps/go-deb
debian: build
2024-11-16 00:05:07 -06:00
./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb