summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 11a52f9..5c74f72 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION = $(shell git describe --tags)
+
all: build
./guireleaser
@@ -14,7 +16,8 @@ build:
echo "build it!"
-rm resources/*.so
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
- GO111MODULE=off go build -v -x
+ GO111MODULE=off go build -v -x -ldflags " \
+ -X main.VERSION=${VERSION}"
install:
rm -f ~/go/src/go.wit.com/toolkits/*.so
@@ -28,4 +31,3 @@ redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
-