diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e143b0b..7b52fa0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \ EXTRA_DIST = \ build-aux/build-windows.sh \ + build-aux/git-version-gen \ + $(top_srcdir)/.version \ autogen.sh \ LICENSE \ README.md \ @@ -24,6 +26,10 @@ CLEANFILES = \ MAINTAINERCLEANFILES = \ $(NULL) +BUILT_SOURCES = \ + $(top_srcdir)/.version \ + $(NULL) + noinst_HEADERS = \ src/content-parser.h \ src/datetime-parser.h \ @@ -308,6 +314,15 @@ TESTS = \ $(check_PROGRAMS) +## Helpers: git-version-gen + +$(top_srcdir)/.version: + echo $(VERSION) > $@-t && mv $@-t $@ + +dist-hook: + echo $(VERSION) > $(distdir)/.tarball-version + + ## Helpers: Valgrind runner if USE_VALGRIND |