+doc/%.png: doc/%.dot
+ @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; }
+ $(DOT) -Tpng -o $@ $<
+
+man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
+ @test -n "$(DOCBOOK2MAN)" || { echo 'docbook2html' not found during configure; exit 1; }
+ TMPDIR=`mktemp -d` && { \
+ $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $$TMPDIR/$(patsubst man/%.in,%,$@) ; \
+ mv $$TMPDIR/$(patsubst man/%.in,%,$@) $@ ; \
+ rm -rf "$$TMPDIR" ; \
+ }
+
+man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
+ @test -n "$(DOCBOOK2HTML)" || { echo 'docbook2html' not found during configure; exit 1; }
+ TMPDIR=`mktemp -d` && { \
+ $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $$TMPDIR/$(patsubst man/%.in,%,$@) ; \
+ mv $$TMPDIR/$(patsubst man/%.in,%,$@) $@ ; \
+ rm -rf "$$TMPDIR" ; \
+ }
+
+man/%.7: man/%.7.in stamp-directories $(REPLACE_VARS_SED)