From 5e53ba7406e65b51ec59aad634b6baf7154e1ad3 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 13 Jan 2016 19:31:32 +0100 Subject: build: added git-version-gen support --- Makefile.am | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Makefile.am') 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 -- cgit v1.2.3-18-g5258