(re)added xsltproc support
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 19 Mar 2005 01:59:47 +0000 (01:59 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 19 Mar 2005 01:59:47 +0000 (01:59 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1930 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/Makefile-files

index f0f80af..ed4631b 100644 (file)
@@ -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