From 081c7214b2cb41e5eef5865a8d9a9e54fa6bd120 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Dec 2007 19:44:37 +0000 Subject: Check for dummy man pages in dist-local. 2007-12-21 Behdad Esfahbod * docs/Makefile.am: Check for dummy man pages in dist-local. svn path=/trunk/; revision=2531 --- ChangeLog | 4 ++++ docs/Makefile.am | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a48627ca..771072e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-21 Behdad Esfahbod + + * docs/Makefile.am: Check for dummy man pages in dist-local. + 2007-12-21 Behdad Esfahbod Bug 504802 – build failure: No rule to make target diff --git a/docs/Makefile.am b/docs/Makefile.am index cfc20e3f..b32cb757 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -101,10 +101,15 @@ MAINTAINERCLEANFILES = $(man_MANS) if ENABLE_MAN .xml.1: @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< +dist-local-check-mans-enabled: + @if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi else $(man_MANS): @echo Man generation disabled. Creating dummy $@. Configure with --enable-man to enable it. @echo Man generation disabled. Remove this file, configure with --enable-man, and rebuild Pango > $@ +dist-local-check-mans-enabled: + @echo "*** --enable-man must be used in order to make dist" + @false endif EXTRA_DIST += \ @@ -114,7 +119,7 @@ EXTRA_DIST += \ check.docs # force doc rebulid after configure -dist-hook-local: dist-local-check-no-cross-references maintainer-clean-local all-local +dist-hook-local: dist-local-check-mans-enabled dist-local-check-no-cross-references maintainer-clean-local all-local files='$(BUILT_EXTRA_DIST)'; \ for f in $$files; do \ if test -f $$f; then d=.; else d=$(srcdir); fi; \ -- cgit v1.2.1