From 810a16bfbea027aaebe87fecf2fa1d3ff44e018a Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 8 Feb 2006 12:38:11 +0000 Subject: [PATCH] added generation of .html and .txt version of manual parts --- helm/software/matita/help/C/Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index ad3ad6433..f9ebfd09f 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -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 + -- 2.39.2