From d97e996e5c1059ce338e1b08634d4ea811df84c5 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sat, 19 Mar 2005 01:59:47 +0000 Subject: [PATCH] (re)added xsltproc support git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1930 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/doc/Makefile-files | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/util-vserver/doc/Makefile-files b/util-vserver/doc/Makefile-files index f0f80af..ed4631b 100644 --- a/util-vserver/doc/Makefile-files +++ b/util-vserver/doc/Makefile-files @@ -27,6 +27,7 @@ doc_gen_DOCS = doc/configuration.html \ doc_configuration_SRCS = doc/configuration.xml \ doc/configuration.xsd \ + doc/configuration.dtd \ doc/configuration.css \ doc/configuration-xhtml.xsl @@ -53,6 +54,15 @@ doc_doc: $(doc_gen_DOCS) 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' '$@' -endif +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 -f '$@.tmp' '$@' +endif HAVE_XSLTPROC +endif !HAVE_XSLTP -- 1.8.1.5