]> matita.cs.unibo.it Git - helm.git/commitdiff
added generation of .html and .txt version of manual parts
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 8 Feb 2006 12:38:11 +0000 (12:38 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 8 Feb 2006 12:38:11 +0000 (12:38 +0000)
helm/software/matita/help/C/Makefile

index ad3ad64339813b30e7d1cad7045f7aa78cd788ac..f9ebfd09f3a8075cad78dd1abb8a5e341b64f5ac 100644 (file)
@@ -1,7 +1,24 @@
 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) $< > $@
 %.fo: %.xml
@@ -10,3 +27,6 @@ all:
        fop $< $@
 clean:
        rm -f *.html *.fo *.pdf
+       rm -rf $(filter-out version.txt,$(wildcard *.txt))
+       rm -f *-stamp
+