]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/help/C/Makefile
Most of the tactics are now documented.
[helm.git] / helm / software / matita / help / C / Makefile
index ad3ad64339813b30e7d1cad7045f7aa78cd788ac..95fe3e3c696c9b381948d6ffdfe5e46361a84d04 100644 (file)
@@ -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
+