summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-04 17:40:56 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-04 19:01:11 +0200
commit67e258a7a2217300a43c8aa0636bfe4d4aef6bdb (patch)
treeb6b732b7cffa05d33f9622f5e56dba7409bb705c /Makefile
parent715850857759d49dbb7d9ffb93acb9435a8b3136 (diff)
[feat] add version string
The binary now has a --version that is extracted from the git tags/commits. - Resolves: #39
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f478300..a93bf5e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@
all: icon locales build
-build: icon catalog.go
- go build
+build:
+ go build -ldflags "-X main.version=`git describe --tags`"
clean:
make -C icon clean