From e7df0c7ad266dbd993a3814470a334cee023ab26 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Aug 2010 11:51:53 +0100 Subject: Makefile.am, configure.ac: refuse to make dist if automake is too old This avoids accidentally making tarballs that can't have vala bindings. --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 2083cfe0a..6237ff2db 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,6 +45,17 @@ upload-branch-docs: all rsync -rtzvPp --chmod=a+rX docs/reference/html/ \ $(UPLOAD_BRANCH_TO)-$(BRANCH)/ +if HAVE_AUTOMAKE_FOR_DIST +# automake is new enough to make dist +else +dist-hook: dist-hook-check-am +dist-hook-check-am: + @echo "*** Your automake is too old to compile Vala.">&2 + @echo "*** You can build telepathy-glib with this automake, but you">&2 + @echo "*** should not use it to make tarball releases.">&2 + @exit 1 +endif + include tools/lcov.am CHANGELOG_RANGE = telepathy-glib-0.8.0.. -- cgit v1.2.1