Check for dummy man pages in dist-local.
authorBehdad Esfahbod <behdad@gnome.org>
Fri, 21 Dec 2007 19:44:37 +0000 (19:44 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Fri, 21 Dec 2007 19:44:37 +0000 (19:44 +0000)
2007-12-21  Behdad Esfahbod  <behdad@gnome.org>

        * docs/Makefile.am: Check for dummy man pages in dist-local.

svn path=/trunk/; revision=2531

ChangeLog
docs/Makefile.am

index a48627c..771072e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-12-21  Behdad Esfahbod  <behdad@gnome.org>
 
+       * docs/Makefile.am: Check for dummy man pages in dist-local.
+
+2007-12-21  Behdad Esfahbod  <behdad@gnome.org>
+
        Bug 504802 – build failure: No rule to make target
        `pango-querymodules.1', needed by `all-am'. Stop.
 
index cfc20e3..b32cb75 100644 (file)
@@ -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;       \