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=425355261565f2b7135a44520584f6d99b82bd57;hpb=ec87c891d03b562a89bf33ac8f2e93acf2620278;p=util-vserver.git diff --git a/util-vserver/doc/Makefile-files b/util-vserver/doc/Makefile-files index 4253552..ed4631b 100644 --- a/util-vserver/doc/Makefile-files +++ b/util-vserver/doc/Makefile-files @@ -27,13 +27,9 @@ doc_gen_DOCS = doc/configuration.html \ doc_configuration_SRCS = doc/configuration.xml \ doc/configuration.xsd \ - doc/configuration-flower.css \ - doc/configuration-lsd.css \ - doc/configuration-lsd1.css \ - doc/configuration-xhtml.xsl \ - doc/flowers.png \ - doc/flowers1.png \ - doc/flowers2.png + doc/configuration.dtd \ + doc/configuration.css \ + doc/configuration-xhtml.xsl doc_compatibility_SRCS = doc/compatibility.xml \ doc/compatibility.dtd \ @@ -58,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