doc/intro.txt
XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers'
+XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers'
doc_gen_DOCS = doc/configuration.html \
doc/compatibility.html
EXTRA_DIST += $(doc_compatibility_SRCS) \
$(doc_configuration_SRCS) \
$(doc_old_doc) \
- doc/beautify.xsl
+ $(doc_gen_DOCS)
-CLEANFILES += $(doc_gen_DOCS) doc/*.raw.html*
+CLEANFILES += $(doc_gen_DOCS) doc/*.raw.html* doc/*.html.tmp
doc/configuration.html: STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl
doc/configuration.html: $(srcdir)/doc/configuration-xhtml.xsl
doc: doc_doc
doc_doc: $(doc_gen_DOCS)
-%.raw.html: %.xml $(STYLESHEET)
- -rm -f '$@.tmp' '$@'
- $(XSLTPROC) $(XSLT_FLAGS) $(XSLT_AMFLAGS) -o '$@.tmp' "$(STYLESHEET)" "$<"
- mv '$@.tmp' '$@'
-
-%.html: %.raw.html doc/beautify.xsl
- -rm -f '$@.tmp' '$@'
- $(XSLTPROC) -o '$@.tmp' doc/beautify.xsl '$<'
- mv '$@.tmp' '$@'
+if HAVE_XSLTP
+%.html: %.xml $(STYLESHEET)
+ LANG=C $(XSLTP) $(XSLTP_AMFLAGS) -in '$<' -xsl $(STYLESHEET) -out '$@.tmp'
+ @mv -f '$@.tmp' '$@'
+endif