summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-06-09 18:20:13 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-06-09 18:20:13 +0200
commitb6055c5fe61d918259d1c253aa32fa97dd3e5163 (patch)
treed676f0734ebdb88ee128686f5dbb44688c2a32d0 /doc
parent2f360e81e09412ecff2e5991ee0c90a0f6ed59e3 (diff)
downloadxine-lib-b6055c5fe61d918259d1c253aa32fa97dd3e5163.tar.gz
xine-lib-b6055c5fe61d918259d1c253aa32fa97dd3e5163.tar.bz2
Resurrect the check for xmlto/rsvg (rather than sgmltools/fig2dev) so that the build can be done even without those installed.
Diffstat (limited to 'doc')
-rw-r--r--doc/faq/Makefile.am31
-rw-r--r--doc/hackersguide/Makefile.am48
2 files changed, 73 insertions, 6 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am
index 49d22860f..782f618c1 100644
--- a/doc/faq/Makefile.am
+++ b/doc/faq/Makefile.am
@@ -7,8 +7,35 @@ EXTRA_DIST = README faq.docbook $(doc_DATA) $(html_DATA)
DISTCLEANFILES = $(doc_DATA) $(html_DATA)
+docs: $(hackersguide_DATA)
+
+clean-docs:
+ rm -f $(hackersguide_DATA)
+
+dist-hook:
+ @if test x"$(distcheck_lax)" = x ; then \
+ $(MAKE) fail_if_missing=yes docs ; \
+ else \
+ $(MAKE) docs ; \
+ fi
+
+distclean-local: clean-docs
+
+if HAVE_XMLTO
faq.html: faq.docbook
- xmlto html-nochunks $(srcdir)/faq.docbook
+ xmlto html-nochunks $^
faq.txt: faq.docbook
- xmlto txt $(srcdir)/faq.docbook
+ xmlto txt $^
+else
+faq.html faq.txt: faq.docbook
+ if test x"$(fail_if_missing)" = x"yes"; then \
+ echo "Please install xmlto."; \
+ exit 1; \
+ fi
+ if test x"$(fail_if_missing)" != x"yes"; then \
+ touch $@; \
+ sleep 1; \
+ touch $^; \
+ fi
+endif
diff --git a/doc/hackersguide/Makefile.am b/doc/hackersguide/Makefile.am
index 4b5985599..025f4a1ec 100644
--- a/doc/hackersguide/Makefile.am
+++ b/doc/hackersguide/Makefile.am
@@ -21,10 +21,50 @@ EXTRA_DIST = README $(hackersguide_docbook) $(hackersguide_svg) \
DISTCLEANFILES = $(hackersguide_DATA)
+SUFFIXES = .png .fig
+
+docs: $(hackersguide_DATA)
+
+clean-docs:
+ rm -f $(hackersguide_DATA)
+
+dist-hook:
+ @if test x"$(distcheck_lax)" = x ; then \
+ $(MAKE) fail_if_missing=yes docs ; \
+ else \
+ $(MAKE) docs ; \
+ fi
+
+distclean-local: clean-docs
+
+if HAVE_XMLTO
+hackersguide.html: $(hackersguide_docbook)
+ xmlto html-nochunks $^
+else
hackersguide.html: $(hackersguide_docbook)
- xmlto html-nochunks $(srcdir)/hackersguide.docbook
+ if test x"$(fail_if_missing)" = x"yes"; then \
+ echo "Please install xmlto."; \
+ exit 1; \
+ fi
+ if test x"$(fail_if_missing)" != x"yes"; then \
+ touch $@; \
+ sleep 1; \
+ touch $^; \
+ fi
+endif
+if HAVE_RSVG
.svg.png:
- rsvg -f png $< $@
-
-SUFFIXES = .png .fig
+ rsvg -f png $^ $@
+else
+.svg.png:
+ if test x"$(fail_if_missing)" = x"yes"; then \
+ echo "Please install rsvg."; \
+ exit 1; \
+ fi
+ if test x"$(fail_if_missing)" != x"yes"; then \
+ touch $@; \
+ sleep 1; \
+ touch $^; \
+ fi
+endif