X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fdoc%2FMakefile-files;h=7a9be83eeded720b5b6aa4462c53745e95544493;hb=c574f33e210c3438945209d685c218c51f74cbaa;hp=d0a9037a9146a40e6c27d5dfce6e4a11b962fc7f;hpb=e31d8cb78c118b774917fd665b3b5f6fe2912cf5;p=util-vserver.git diff --git a/util-vserver/doc/Makefile-files b/util-vserver/doc/Makefile-files index d0a9037..7a9be83 100644 --- a/util-vserver/doc/Makefile-files +++ b/util-vserver/doc/Makefile-files @@ -17,16 +17,45 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## -doc_DAT = doc/FAQ.txt \ - doc/changelog.txt \ - doc/intro.txt \ - doc/compatibility.html \ - doc/compat-xhtml.xsl \ - doc/compatibility.dtd \ - doc/compatibility.xml \ - doc/configuration.xml - -doc/compatibility.html: STYLESHEET=$(srcdir)/doc/compat-xhtml.xsl -doc/compatibility.html: $(srcdir)/doc/compat-xhtml.xsl -%.html: %.xml $(STYLESHEET) - $(XSLTPROC) -o "$@" "$(STYLESHEET)" "$<" +doc_old_doc = doc/FAQ.txt \ + doc/intro.txt + +XSLT_AMFLAGS = --stringparam confdir '$(sysconfdir)/vservers' + +doc_gen_DOCS = doc/configuration.html \ + doc/compatibility.html + +doc_configuration_SRCS = doc/configuration.xml \ + doc/configuration.dtd \ + doc/configuration-lsd.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/beautify.xsl + +CLEANFILES += $(doc_gen_DOCS) doc/*.raw.html* + +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) + +%.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' '$@'