aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2024-01-26 23:45:28 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2024-01-26 23:45:28 +0700
commita118d98ec3e1824b4d5ee383e1f62839c3e1cf1a (patch)
treefbdf2426189e8cfa296565d65589e6333711a874
parentc7fc94dff6b8e809d8942135d19b7be1fe7c3a7b (diff)
build: include version files into the release tarball
-rw-r--r--Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 7b2198c..aee0d9d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,12 +43,20 @@ SUBDIRS += \
doc \
$(NULL)
+BUILT_SOURCES = $(top_srcdir)/.version
+$(top_srcdir)/.version:
+ echo $(VERSION) > $@-t && mv $@-t $@
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version
+
EXTRA_DIST = \
+ .version \
LEGAL \
COPYING \
README.md \
contrib/osmo-trx.spec.in \
debian \
+ git-version-gen \
$(NULL)
AM_DISTCHECK_CONFIGURE_FLAGS = \