aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-03 18:07:32 +0100
committerHarald Welte <laforge@gnumonks.org>2016-01-03 18:08:05 +0100
commit3761ef479070497242bcd2c024c195c8d79ba608 (patch)
tree3a6f293a4398726524ef352cd47188e8763d803c /Makefile.am
parentb66c5d0e623c3283ac2221cb0f3d6d23004b438d (diff)
add git-version-gen to auto-generate git based version number
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 13cec6c..491e1ff 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,11 @@
+AUTOMAKE_OPTIONS = foreign dist-bzip2
+
SUBDIRS = src
-EXTRA_DIST = asn1
+EXTRA_DIST = asn1 .version
+
+BUILT_SOURCES = $(top_srcdir)/.version
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version