summaryrefslogtreecommitdiff
path: root/Makefile
blob: d2d79c7a79428b0b150758cd46de10d5add9d4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.PHONY: debian

VERSION = $(shell git describe --tags)
DATE = $(shell date +%Y.%m.%d)

run: install
	go-deb --release --no-gui --auto --forge go.wit.com/apps/autogenpb --dir ${HOME}/incoming
	go-deb --release --no-gui --auto --forge go.wit.com/apps/go-mod-clean --dir ${HOME}/incoming
	@#go-deb --forge go.wit.com/apps/autotypist --no-gui --auto
	ls -lth ${HOME}/incoming

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: goimports vet
	-rm resources/*.so
	touch resources/blank.so
	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 -f go-deb
	rm -f resources/*.so
	touch resources/blank.so

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