X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=doc%2FMakefile-files;h=5354f9d1342a468ecd8d4e91a11d6782aeb68c07;hb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;hp=f2c338e4cb521fb08c14e544e28cd17dddd9b707;hpb=06e1018272502e1d15d6d8f32b80fa96420785b8;p=util-vserver.git diff --git a/doc/Makefile-files b/doc/Makefile-files index f2c338e..5354f9d 100644 --- a/doc/Makefile-files +++ b/doc/Makefile-files @@ -1,4 +1,4 @@ -## $Id: Makefile-files,v 1.1 2003/09/29 22:01:58 ensc Exp $ -*- makefile -*- +## $Id: Makefile-files 2338 2006-09-28 22:39:19Z dhozac $ -*- makefile -*- ## Copyright (C) 2003 Enrico Scholz ## @@ -17,6 +17,53 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## -doc_DAT = doc/FAQ.txt \ - doc/changelog.txt \ - doc/intro.txt +doc_old_doc = doc/intro.txt + +XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers' +XSLTP_AMFLAGS = -param confdir '$(sysconfdir)/vservers' + +doc_gen_DOCS = doc/configuration.html \ + doc/compatibility.html + +doc_configuration_SRCS = doc/configuration.xml \ + doc/configuration.xsd \ + doc/configuration.dtd \ + doc/configuration.css \ + doc/configuration-xhtml.xsl \ + doc/configuration-wiki.xsl + +doc_compatibility_SRCS = doc/compatibility.xml \ + doc/compatibility.dtd \ + doc/compatibility-xhtml.xsl + +EXTRA_DIST += $(doc_compatibility_SRCS) \ + $(doc_configuration_SRCS) \ + $(doc_old_doc) \ + $(doc_gen_DOCS) + +CLEANFILES += doc/*.raw.html* doc/*.html.tmp + +doc/configuration.html: STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl +doc/configuration.html: $(srcdir)/doc/configuration-xhtml.xsl + +doc/compatibility.html: STYLESHEET=$(srcdir)/doc/compatibility-xhtml.xsl +doc/compatibility.html: $(srcdir)/doc/compatibility-xhtml.xsl + +doc: doc_doc +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' '$@' +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