summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-04-30 16:59:56 +0200
committerGravatar Nikias Bassen2023-04-30 16:59:56 +0200
commit1d20bed9ab853507b013e0ab0fdfa11be393d1e0 (patch)
treeb13932784a2e01026bf719f8a2f076f8ae95acc9 /Makefile.am
parent462e238de4553532ade7eb88ef86905c04fc7bb7 (diff)
downloadlibirecovery-1d20bed9ab853507b013e0ab0fdfa11be393d1e0.tar.gz
libirecovery-1d20bed9ab853507b013e0ab0fdfa11be393d1e0.tar.bz2
autoconf: Automatically derive version number from latest git tag
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4a61e83..6c48faf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,11 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src include tools udev
EXTRA_DIST = \
- README.md
+ README.md \
+ git-version-gen
+
+dist-hook:
+ echo $(VERSION) > $(distdir)/.tarball-version
DISTCHECK_CONFIGURE_FLAGS = \
--with-udevrulesdir=$$dc_install_base/$(udevrulesdir)