X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2FMakefile;h=95fe3e3c696c9b381948d6ffdfe5e46361a84d04;hb=1b9dcf31051dfcf1e80991954ecbcb6aa9744388;hp=ad3ad64339813b30e7d1cad7045f7aa78cd788ac;hpb=1da3c8d481853c3d6b9f33385ebde848866a37b5;p=helm.git diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index ad3ad6433..95fe3e3c6 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -1,12 +1,32 @@ 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 -all: + +all: html txt + +.PHONY: html +html: html-stamp +html-stamp: matita.html + ./split.ml $< + touch $@ + +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) $< > $@ + xsltproc $(XHTML_XSL) $< | xmllint --format - > $@ %.fo: %.xml - xsltproc $(FO_XSL) $< > $@ + xsltproc $(FO_XSL) $< | xmllint --format - > $@ %.pdf: %.fo fop $< $@ clean: rm -f *.html *.fo *.pdf + rm -rf $(filter-out version.txt,$(wildcard *.txt)) + rm -f *-stamp +