X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2FMakefile;h=dccc62ed6f74cee2f9a6d7369bf78b074fdd6b3c;hb=b4fb4fa6c17945b70d821e2b31e6aca727bcf9d5;hp=95fe3e3c696c9b381948d6ffdfe5e46361a84d04;hpb=156e48fcc6f5a0884b120999e61cf3c1d596024d;p=helm.git diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index 95fe3e3c6..dccc62ed6 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -1,26 +1,34 @@ XSLTPROC=xsltproc -XHTML_XSL=http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl -FO_XSL=http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl +XHTML_XSL=matita-xhtml.xsl +FO_XSL=matita-fo.xsl +MAIN=matita.xml all: html txt +# XHTMLs generation + .PHONY: html html: html-stamp -html-stamp: matita.html - ./split.ml $< +html-stamp: $(MAIN) + xsltproc $(XHTML_XSL) $< touch $@ +# TXTs generation + TXTS = $(patsubst %.html,%.txt,$(wildcard *.html)) .PHONY: txt txt: txt-stamp txt-stamp: html-stamp $(MAKE) $(TXTS) touch $@ - %.txt: %.html w3m -dump $< > $@ -%.html: %.xml - xsltproc $(XHTML_XSL) $< | xmllint --format - > $@ + +# PDF generation + +pdf: pdf-stamp +pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN)) + touch $@ %.fo: %.xml xsltproc $(FO_XSL) $< | xmllint --format - > $@ %.pdf: %.fo