]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/help/C/Makefile
New documentation.
[helm.git] / matita / help / C / Makefile
index f9ebfd09f3a8075cad78dd1abb8a5e341b64f5ac..dccc62ed6f74cee2f9a6d7369bf78b074fdd6b3c 100644 (file)
@@ -1,28 +1,36 @@
 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) $< > $@
+
+# PDF generation
+
+pdf: pdf-stamp
+pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN))
+       touch $@
 %.fo: %.xml
-       xsltproc $(FO_XSL) $< > $@
+       xsltproc $(FO_XSL) $< | xmllint --format - > $@
 %.pdf: %.fo
        fop $< $@
 clean: