summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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