forge/Makefile

81 lines
1.5 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-17 15:34:13 -06:00
all:
make private
@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-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
forge --gui gocui
2024-12-03 13:23:12 -06:00
redomod-all:
2024-12-05 12:29:47 -06:00
forge --do-RedoGoMod
2024-12-03 13:23:12 -06:00
redomod-erase:
2024-12-05 12:29:47 -06:00
forge --do-RedoGoMod --do-erase
2024-12-03 13:23:12 -06:00
2024-12-05 12:29:47 -06:00
private: install
forge --find-private
fix: install
2024-12-13 17:13:07 -06:00
forge --fix --find-all
2024-12-17 15:34:13 -06:00
list-all: install
2024-12-17 06:36:00 -06:00
forge --find-all
2024-12-17 01:35:22 -06:00
git-reset: install
2024-12-13 17:13:07 -06:00
forge --do-git-reset --find-all
readonly: install
2024-12-05 12:29:47 -06:00
forge --do-list --find-readonly
config: install
2024-12-05 12:29:47 -06:00
forge --config
2024-12-02 06:59:56 -06:00
2024-12-04 15:35:48 -06:00
scan: install
2024-12-05 12:29:47 -06:00
forge --do-scan
2024-12-03 00:33:17 -06:00
pull: install
forge --do-git-pull
2024-12-03 00:33:17 -06:00
2024-12-04 15:35:48 -06:00
mine: install
2024-12-05 12:29:47 -06:00
forge --find-mine
2024-12-11 18:50:14 -06:00
gui: install
forge --do-gui
2024-12-13 13:17:26 -06:00
patches: install
forge --do-patches
2024-12-14 13:12:42 -06:00
patches-localhost: install
forge --do-patches --url "http://localhost:2233/"
2024-12-14 14:09:15 -06:00
patches-list: install
forge --list-patches --url "http://localhost:2233/"
2024-12-17 06:36:00 -06:00
restart:
reset
rm ~/go/src/repos.pb
2024-12-17 20:43:00 -06:00
make private