summaryrefslogtreecommitdiff
path: root/forgeConfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'forgeConfig/Makefile')
-rw-r--r--forgeConfig/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/forgeConfig/Makefile b/forgeConfig/Makefile
new file mode 100644
index 0000000..89ab023
--- /dev/null
+++ b/forgeConfig/Makefile
@@ -0,0 +1,48 @@
+VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%Y.%m.%d)
+
+build:
+ GO111MODULE=off go build \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+
+test2:
+ ./forgeConfig
+ FORGE_HOME=/tmp/forge ./forgeConfig
+ FORGE_HOME=/tmp/forge ./forgeConfig --list
+
+install:
+ GO111MODULE=off go install \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+
+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
+
+list:
+ ./forgeConfig --list
+
+add:
+ ./forgeConfig --add --name 'foo' --gopath 'go.wit.com/apps/foo'
+
+update:
+ ./forgeConfig --update --name 'foo' --gopath 'more stuff but not memory corruption?'
+
+corruptMemory:
+ ./forgeConfig --update --name 'foo' --gopath 'blah'
+
+goimports:
+ goimports -w *.go
+
+prep:
+ go get -v -t -u
+
+run:
+ go run *.go
+
+clean:
+ -rm -f forgeConfig