summaryrefslogtreecommitdiff
path: root/forgeConfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'forgeConfig/Makefile')
-rw-r--r--forgeConfig/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/forgeConfig/Makefile b/forgeConfig/Makefile
index 9c34ac1..8c6325d 100644
--- a/forgeConfig/Makefile
+++ b/forgeConfig/Makefile
@@ -1,8 +1,18 @@
+VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%Y.%m.%d)
+
build:
- GO111MODULE=off go build
+ GO111MODULE=off go build \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
./forgeConfig
FORGE_HOME=/tmp/forge ./forgeConfig
+list:
+ ./forgeConfig --list
+
+add:
+ ./forgeConfig --add --name 'foo' --gopath 'go.wit.com/apps/foo'
+
goimports:
goimports -w *.go