forge/Makefile

92 lines
1.8 KiB
Makefile

VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
info: install
# make dirty
@echo "make restart # remove the repos.pb file"
@echo "make private # only the private ones"
@echo "make mine # just show my repos"
@echo "make all # show all repos"
@echo "make pull # run git pull on every repo"
@echo "make dirty # CheckDirty()"
@echo "make user # git checkout user"
@echo "make master # git checkout master"
forge
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay
verbose:
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install: goimports vet
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
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
private: install
forge find --private
fix: install
forge --fix find --all
list-all: install
forge list --all
git-reset: install
forge --do-git-reset find --all
readonly: install
forge --list find --readonly
config: install
forge --config
scan: install
forge do --scan
pull: install
forge pull --mine
mine: install
forge list --mine
all: install
forge list --all
patches: install
forge --patchset "from makefile"
localhost-patches: install
forge --patchset "test-localhost" --url "http://localhost:2233/"
patches-list: install
forge --list-patchset
dirty: install
forge --no-gui find --all --dirty
restart:
reset
-rm ~/go/src/repos.pb
make private
user: install
forge user
devel: install
forge devel --all
master: install
forge master --all