summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 18 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index 5365bdd..4288aec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
-info: install
- # forge dirty
- # forge examine
- # forge clean
- make andlabs
+# make build # go build using your git cloned repos (GO111MODULE=off)
+# make install # go install using your git cloned repos (GO111MODULE=off)
+# make gocui # try the ncurses gui plugin
+# make andlabs # try the andlabs gui plugin (uses GTK)
+
+default: install
+ forge dirty --verbose
vet:
@GO111MODULE=off go vet
@@ -27,7 +29,6 @@ install-raw: goimports vet plugin
go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
-
plugin:
rm -f resources/*.so
cp ../../toolkits/gocui/gocui.so resources/
@@ -35,31 +36,22 @@ plugin:
andlabs:
forge --gui andlabs
+gocui: install
+ forge --gui gocui >/tmp/forge.log 2>&1
+
goimports:
reset
goimports -w *.go
@# // to globally reset paths:
@# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
-gocui: install
- forge --gui gocui >/tmp/forge.log 2>&1
-
-patches-make: install
- forge --patchset "from makefile 2"
-
-patches-list-2233: install
- forge --list-patchset --connect "http://go.wit.com:2233/"
+clean:
+ -rm -f forge go.*
+ # -rm -f ~/go/src/repos.pb
+ go-mod-clean --purge
-patches-list: install
- forge --list-patchset
-
-patches-apply-230233: install
- forge --apply /tmp/2024.12.27.230233.submitted.pb
-
-restart:
- reset
- -rm ~/go/src/repos.pb
- make private
+identify-protobuf:
+ autogenpb --identify ~/go/src/repos.pb
-identify:
- autogenpb --identify /home/jcarr/go/src/repos.pb
+devel:
+ forge clean devel --force --verbose