From 9320e5660bb39dc88d611159035c52540bc454e0 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 22 Apr 2004 19:00:19 +0000 Subject: [PATCH] use xalan git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1493 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/doc/Makefile-files | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/util-vserver/doc/Makefile-files b/util-vserver/doc/Makefile-files index 7a9be83..2848343 100644 --- a/util-vserver/doc/Makefile-files +++ b/util-vserver/doc/Makefile-files @@ -21,6 +21,7 @@ doc_old_doc = doc/FAQ.txt \ doc/intro.txt XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers' +XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers' doc_gen_DOCS = doc/configuration.html \ doc/compatibility.html @@ -37,9 +38,9 @@ doc_compatibility_SRCS = doc/compatibility.xml \ 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 @@ -50,12 +51,8 @@ doc/compatibility.html: $(srcdir)/doc/compatibility-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 -- 1.8.1.5