forge/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

2024-11-16 00:07:00 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
2024-12-24 03:35:19 -06:00
info: install
2024-12-17 15:34:13 -06:00
@echo "make restart # remove the repos.pb file"
2025-01-06 19:03:35 -06:00
@echo "make pull-mine # run git pull on my repos"
forge
2024-12-02 06:59:56 -06:00
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay
2024-02-16 17:55:53 -06:00
2024-11-16 00:07:00 -06:00
verbose:
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
2024-12-11 23:11:21 -06:00
install: goimports vet
2024-11-16 00:07:00 -06:00
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go
2024-11-16 00:07:00 -06:00
@# // to globally reset paths:
@# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
2024-12-04 15:35:48 -06:00
gocui: install
2024-12-24 02:26:54 -06:00
forge --gui gocui >/tmp/forge.log 2>&1
2024-12-27 22:27:19 -06:00
patches-make: install
2024-12-28 03:00:42 -06:00
forge --patchset "from makefile 2"
2024-12-14 13:12:42 -06:00
patches-list-2233: install
forge --list-patchset --connect "http://go.wit.com:2233/"
2024-12-14 14:09:15 -06:00
2024-12-28 19:36:03 -06:00
patches-list: install
2024-12-25 23:17:24 -06:00
forge --list-patchset
2024-12-17 06:36:00 -06:00
2024-12-28 03:00:42 -06:00
patches-apply-230233: install
forge --apply /tmp/2024.12.27.230233.submitted.pb
2024-12-27 22:27:19 -06:00
2024-12-17 06:36:00 -06:00
restart:
reset
2024-12-17 23:28:24 -06:00
-rm ~/go/src/repos.pb
2024-12-17 20:43:00 -06:00
make private