use xalan
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 22 Apr 2004 19:00:19 +0000 (19:00 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 22 Apr 2004 19:00:19 +0000 (19:00 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1493 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/Makefile-files

index 7a9be83..2848343 100644 (file)
@@ -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