aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-02-07 15:54:25 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-02-07 15:54:25 +0100
commit4b676a3e0a21d494a1d47efcaf995537b29ff2b9 (patch)
treea85eccdaef5fe078e22de7fa1aae23558d39894c /Makefile.am
parentd251d836fa60808c6a15179a7f7e685589145e98 (diff)
parent542a6d37c5b7675f1c80dcc47a5413ffa76a425b (diff)
downloadblogc-4b676a3e0a21d494a1d47efcaf995537b29ff2b9.tar.gz
blogc-4b676a3e0a21d494a1d47efcaf995537b29ff2b9.tar.bz2
blogc-4b676a3e0a21d494a1d47efcaf995537b29ff2b9.zip
Merge remote-tracking branch 'origin/master' into feature/directives
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 55c73dc..2c36543 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 \
@@ -311,6 +317,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