aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-08-25 15:40:38 +0200
committerMax <msuraev@sysmocom.de>2017-08-25 15:41:43 +0200
commitb026d387033d895243af79393ae20af7e7d4287d (patch)
treeff27ae446212063f434efc92b71ce5c5cbfdcf19
parent8876a507ff46c4caf8cb4f99df121f1188db01ef (diff)
Add git-version-gen snippet
-rw-r--r--Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 5c1add6..4832c84 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,6 +15,14 @@ EXTRA_DIST = \
doc/examples/sysmo/sysmobts-mgr.cfg \
doc/examples/virtual/openbsc-virtual.cfg \
doc/examples/virtual/osmobts-virtual.cfg \
+ git-version-gen .version \
README.md
@RELMAKE@
+
+BUILT_SOURCES = $(top_srcdir)/.version
+
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version