forge/Makefile

61 lines
1.4 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
# make dirty
2024-12-17 15:34:13 -06:00
@echo "make restart # remove the repos.pb file"
@echo "make private # only the private ones"
@echo "make mine # just show my repos"
@echo "make pull # run git pull on every repo"
2024-12-18 22:02:07 -06:00
@echo "make dirty # CheckDirty()"
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:
reset
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-05 12:29:47 -06:00
private: install
2024-12-27 04:36:29 -06:00
forge list --private
2025-01-06 18:14:33 -06:00
pull-mine: install
2024-12-27 03:39:53 -06:00
forge pull --mine
2024-12-03 00:33:17 -06:00
2024-12-04 15:35:48 -06:00
mine: install
2024-12-27 03:39:53 -06:00
forge list --mine
2024-12-11 18:50:14 -06:00
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-18 22:02:07 -06:00
dirty: install
forge dirty
2024-12-18 22:02:07 -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