[gtk+] Clean up man page handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Clean up man page handling
- Date: Sat, 22 May 2010 03:53:45 +0000 (UTC)
commit 54093354e4be518dce5a6cb94ad018e5b7aa7a6d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 21 22:41:35 2010 -0400
Clean up man page handling
docs/reference/gdk-pixbuf/Makefile.am | 35 +++++++++++++++++++++++---------
docs/reference/gtk/Makefile.am | 2 +-
2 files changed, 26 insertions(+), 11 deletions(-)
---
diff --git a/docs/reference/gdk-pixbuf/Makefile.am b/docs/reference/gdk-pixbuf/Makefile.am
index 2186391..58235fd 100644
--- a/docs/reference/gdk-pixbuf/Makefile.am
+++ b/docs/reference/gdk-pixbuf/Makefile.am
@@ -79,23 +79,38 @@ EXTRA_DIST += version.xml.in \
########################################################################
-if ENABLE_MAN
-
man_MANS = \
gdk-pixbuf-csource-3.0.1 \
gdk-pixbuf-query-loaders-3.0.1
-%.1 : %.xml
- @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+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
-BUILT_EXTRA_DIST = $(man_MANS)
+$(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 > $@
+
+
+dist-local-check-mans-enabled:
+ echo "*** --enable-man must be used in order to make dist"
+ false
endif
-dist-hook-local: $(BUILT_EXTRA_DIST)
- files='$(BUILT_EXTRA_DIST)'; \
- for f in $$files; do \
- if test -f $$f; then d=.; else d=$(srcdir); fi; \
- cp $$d/$$f $(distdir) || exit 1; done
+MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
+
+EXTRA_DIST += $(man_MANS)
+
+dist-hook-local: dist-local-check-mans-enabled gtk-docs-clean all-local
+
+gtk-docs-clean: clean
+ cd $(srcdir) && rm -rf xml html
-include $(top_srcdir)/git.mk
diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am
index ced81f0..a9ca65d 100644
--- a/docs/reference/gtk/Makefile.am
+++ b/docs/reference/gtk/Makefile.am
@@ -382,7 +382,7 @@ 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 > $@
+ echo Man generation disabled. Remove this file, configure with --enable-man, and rebuild > $@
dist-local-check-mans-enabled:
echo "*** --enable-man must be used in order to make dist"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]