diff options
author | 2022-02-10 04:35:21 +0100 | |
---|---|---|
committer | 2022-02-10 04:35:21 +0100 | |
commit | 08aefcd597d26a5d99f64815a2b932c36f056164 (patch) | |
tree | 922d4fbc5d50b973fa08cc5ca5a99c148874b3b7 /Makefile.am | |
parent | e41dbc3ddbe30a414e73fa25d9c7c304ffe6989e (diff) | |
download | libimobiledevice-08aefcd597d26a5d99f64815a2b932c36f056164.tar.gz libimobiledevice-08aefcd597d26a5d99f64815a2b932c36f056164.tar.bz2 |
autoconf: Automatically derive version number from latest git tag
with a fallback to get the version string from a .tarball-version file
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 4ef0813..b11de57 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -4,7 +4,11 @@ SUBDIRS = 3rd_party common src include $(CYTHON_SUB) tools docs | |||
4 | 4 | ||
5 | EXTRA_DIST = \ | 5 | EXTRA_DIST = \ |
6 | docs \ | 6 | docs \ |
7 | README.md | 7 | README.md \ |
8 | git-version-gen | ||
9 | |||
10 | dist-hook: | ||
11 | echo $(VERSION) > $(distdir)/.tarball-version | ||
8 | 12 | ||
9 | docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h $(top_srcdir)/include/libimobiledevice/*.h | 13 | docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h $(top_srcdir)/include/libimobiledevice/*.h |
10 | rm -rf docs/html | 14 | rm -rf docs/html |