X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fdoc%2FMakefile-files;h=ed4631b328b85e8cc361cce60c99fd45ab1456b0;hb=faa778968d1a7dfeaebc9fe4b847e691dc62fd15;hp=253788430ba1976d787aaaac68e0e2ef2d1bfcb0;hpb=3bd9f22986b0ee7a1d1ca8c3bdaad653ad8399ee;p=util-vserver.git diff --git a/util-vserver/doc/Makefile-files b/util-vserver/doc/Makefile-files index 2537884..ed4631b 100644 --- a/util-vserver/doc/Makefile-files +++ b/util-vserver/doc/Makefile-files @@ -17,17 +17,18 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## -doc_DAT = doc/FAQ.txt \ - doc/intro.txt +doc_old_doc = doc/intro.txt XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers' +XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers' doc_gen_DOCS = doc/configuration.html \ doc/compatibility.html doc_configuration_SRCS = doc/configuration.xml \ + doc/configuration.xsd \ doc/configuration.dtd \ - doc/configuration-lsd.css \ + doc/configuration.css \ doc/configuration-xhtml.xsl doc_compatibility_SRCS = doc/compatibility.xml \ @@ -36,9 +37,10 @@ doc_compatibility_SRCS = doc/compatibility.xml \ EXTRA_DIST += $(doc_compatibility_SRCS) \ $(doc_configuration_SRCS) \ - doc/beautify.xsl + $(doc_old_doc) \ + $(doc_gen_DOCS) -CLEANFILES += $(doc_gen_DOCS) doc/*.raw.html* +CLEANFILES += doc/*.raw.html* doc/*.html.tmp doc/configuration.html: STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl doc/configuration.html: $(srcdir)/doc/configuration-xhtml.xsl @@ -49,12 +51,18 @@ doc/compatibility.html: $(srcdir)/doc/compatibility-xhtml.xsl doc: doc_doc doc_doc: $(doc_gen_DOCS) -%.raw.html: %.xml $(STYLESHEET) - -rm -f '$@.tmp' '$@' +if HAVE_XSLTP +CLEANFILES += $(doc_gen_DOCS) +%.html: %.xml $(STYLESHEET) + @-rm -f '$@.tmp' '$@' + LANG=C $(XSLTP) $(XSLTP_AMFLAGS) -in '$<' -xsl $(STYLESHEET) -out '$@.tmp' + @mv -f '$@.tmp' '$@' +else !HAVE_XSLTP +if HAVE_XSLTPROC +CLEANFILES += $(doc_gen_DOCS) +%.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' '$@' + @mv -f '$@.tmp' '$@' +endif HAVE_XSLTPROC +endif !HAVE_XSLTP