forgepb/forgeConfig/Makefile

33 lines
614 B
Makefile
Raw Normal View History

2024-11-20 12:11:13 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
2024-11-20 09:31:24 -06:00
build:
2024-11-20 12:11:13 -06:00
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
2024-11-20 11:06:04 -06:00
./forgeConfig
FORGE_HOME=/tmp/forge ./forgeConfig
2024-11-20 09:31:24 -06:00
2024-11-20 12:11:13 -06:00
list:
./forgeConfig --list
add:
./forgeConfig --add --name 'foo' --gopath 'go.wit.com/apps/foo'
2024-11-20 13:43:26 -06:00
update:
./forgeConfig --update --name 'foo' --gopath 'go.wit.com/apps/foonew'
2024-11-20 13:56:27 -06:00
corruptMemory:
./forgeConfig --update --name 'foo' --gopath 'blah'
2024-11-20 09:31:24 -06:00
goimports:
goimports -w *.go
prep:
go get -v -t -u
run:
go run *.go
clean:
-rm -f forgeConfig