X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile-files;fp=doc%2FMakefile-files;h=ed4631b328b85e8cc361cce60c99fd45ab1456b0;hb=9c78378bebc1a9f3d400f422df8ede9efea57dea;hp=0000000000000000000000000000000000000000;hpb=faa778968d1a7dfeaebc9fe4b847e691dc62fd15;p=util-vserver.git diff --git a/doc/Makefile-files b/doc/Makefile-files new file mode 100644 index 0000000..ed4631b --- /dev/null +++ b/doc/Makefile-files @@ -0,0 +1,68 @@ +## $Id$ -*- makefile -*- + +## Copyright (C) 2003 Enrico Scholz +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +## + +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_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