From 9d02edc678d907bd91f92745c538f42d089a5bb2 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 17 Jan 2013 15:41:09 +0100 Subject: [PATCH] Makefile: Allow tarball creation when man-in-doc is active Documentation with included man pages should not be distributed as it contains fixed paths. Since the documentation with man pages is actually written to a separate directory, tarball creation is still possible. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- Makefile.am | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index 639e54bda..9194e3096 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1709,11 +1709,6 @@ dist-hook: $(MAKE) $(AM_MAKEFLAGS) regen-vcs-version rm -f $(top_distdir)/vcs-version cp -p $(srcdir)/vcs-version $(top_distdir) -if MANPAGES_IN_DOC - echo 'Building distribution with man pages included in documentation is' \ - 'not allowed as they can contain fixed paths' >&2; \ - exit 1 -endif # a distcheck hook rule for catching revision control directories distcheck-hook: @@ -1743,6 +1738,10 @@ distcheck-hook: echo "Found unreleased version in NEWS." >&2; \ exit 1; \ fi + if test -e $(top_distdir)/doc/man-html; then \ + echo "Found documentation including man pages in final archive" >&2; \ + exit 1; \ + fi # When building a release, stricter checks should be used distcheck-release dist-release: export BUILD_RELEASE = 1 -- GitLab