From a76488f75f23b8e08763e28b2fa56352e7b04e19 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sat, 30 Jan 2010 13:13:33 -0500 Subject: doc: use new macros to control doc generation Namely XORG_WITH_FOP for the fop backend (pdf) and XORG_ENABLE_DEVEL_DOCS for the generation of all docs Signed-off-by: Gaetan Nadon --- Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index d47a551..a22c157 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,9 +59,12 @@ dist-hook: ChangeLog INSTALL # Developer documentation - not installed on system EXTRA_DIST += doc/fontlib.xml doc/fontlib.xsl doc/fontlib.css -if MAKE_DEVEL_DOCS +if ENABLE_DEVEL_DOCS if HAVE_XMLTO noinst_DATA = doc/fontlib.txt doc/fontlib.html $(srcdir)/doc/fontlib.css +if HAVE_FOP +noinst_DATA += doc/fontlib.pdf doc/fontlib.ps +endif CLEANFILES = doc/fontlib.txt doc/fontlib.html doc/fontlib.pdf doc/fontlib.ps doc/fontlib.txt: $(srcdir)/doc/fontlib.xml $(srcdir)/doc/fontlib.xsl @@ -71,9 +74,9 @@ doc/fontlib.html: $(srcdir)/doc/fontlib.xml $(srcdir)/doc/fontlib.xsl $(AM_V_GEN)$(XMLTO) -m $(srcdir)/doc/fontlib.xsl -o doc xhtml-nochunks $(srcdir)/doc/fontlib.xml doc/fontlib.pdf: $(srcdir)/doc/fontlib.xml $(srcdir)/doc/fontlib.xsl - $(AM_V_GEN)$(XMLTO) -m $(srcdir)/doc/fontlib.xsl -o doc pdf $(srcdir)/doc/fontlib.xml + $(AM_V_GEN)$(XMLTO) --with-fop -m $(srcdir)/doc/fontlib.xsl -o doc pdf $(srcdir)/doc/fontlib.xml doc/fontlib.ps: $(srcdir)/doc/fontlib.xml $(srcdir)/doc/fontlib.xsl - $(AM_V_GEN)$(XMLTO) -m $(srcdir)/doc/fontlib.xsl -o doc ps $(srcdir)/doc/fontlib.xml + $(AM_V_GEN)$(XMLTO) --with-fop -m $(srcdir)/doc/fontlib.xsl -o doc ps $(srcdir)/doc/fontlib.xml endif HAVE_XMLTO -endif MAKE_DEVEL_DOCS +endif ENABLE_DEVEL_DOCS -- cgit v1.2.3