summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2002-05-26 16:51:07 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2002-05-26 16:51:07 +0000
commit3c4f62ad5281ec5104b48f0f828159235ff68b8f (patch)
tree76cde8d2e2c3fa727a24fe847fc5e336a0895a86 /doc
parentede0fbc66ac85f516a1f1a4b2299563e77f14695 (diff)
downloadlibgphoto2-3c4f62ad5281ec5104b48f0f828159235ff68b8f.tar.gz
only include rules if corresponding programs exist
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4573 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 590506099..b783d0ee7 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -18,9 +18,13 @@ doc_DATA = gphoto2-cli.txt gphoto2.txt FAQ
# Special rule for regenerating the man page from the XML file.
# This requires xmlto, which can be obtained from
# <http://cyberelk.net/tim/xmlto/>.
+if XMLTOMAN
$(man_MANS): gphoto2.xml
xmlto man $<
+endif
+if XMLTOHTML
html: gphoto2.xml
xmlto html -o $@ $<
touch $@
+endif