forgepb/forgeConfig/Makefile

47 lines
1.1 KiB
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
FORGE_HOME=/tmp/forge ./forgeConfig --list
2024-11-20 09:31:24 -06:00
2024-11-21 02:24:31 -06:00
install:
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
2024-11-20 23:51:28 -06:00
test:
./forgeConfig --list
./forgeConfig --add --gopath 'go.wit.com/apps/foo'
./forgeConfig --add --gopath 'go.wit.com/apps/foowrite' --writable
./forgeConfig --add --gopath 'gitea.wit.com' --directory
./forgeConfig --add --gopath 'git.wit.org' --directory
./forgeConfig --delete --gopath 'go.wit.com/apps/helloworld'
./forgeConfig --list
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 'more stuff but not memory corruption?'
2024-11-20 13:43:26 -06:00
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