summaryrefslogtreecommitdiff
path: root/scanGoSrc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scanGoSrc/Makefile')
-rw-r--r--scanGoSrc/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/scanGoSrc/Makefile b/scanGoSrc/Makefile
new file mode 100644
index 0000000..eeaa73f
--- /dev/null
+++ b/scanGoSrc/Makefile
@@ -0,0 +1,25 @@
+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}"
+
+test:
+ FORGE_HOME=/tmp/forge ./scanGoSrc
+
+install:
+ GO111MODULE=off go install \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+
+goimports:
+ goimports -w *.go
+
+prep:
+ go get -v -t -u
+
+run:
+ go run *.go
+
+clean:
+ -rm -f scanGoSrc