]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/help/C/Makefile
relocation of developments.png
[helm.git] / matita / help / C / Makefile
index a25effd585339a680662dc6f9ec2f73fc19d638e..2a4287678cf2c97371d29e6a59d48d738e481519 100644 (file)
@@ -2,22 +2,28 @@
 include ../../../Makefile.defs
 
 XSLTPROC=xsltproc
-XHTML_XSL=matita-xhtml.xsl
-FO_XSL=matita-fo.xsl
-TEX_XSL=matita-tex.xsl
+XHTML_XSL=xsl/matita-xhtml.xsl
+FO_XSL=xsl/matita-fo.xsl
+TEX_XSL=xsl/matita-tex.xsl
 TEX_UNICODE_PATH=$(SRCROOT)/share/texmf/unicode
 TEX_ENV=TEXINPUTS=.:$(TEX_UNICODE_PATH):$(TEX_UNICODE_PATH)/data:
 MAIN=matita.xml
 DEPS := $(wildcard *.xml)
 
+DESTDIR = /usr/local/share/doc/matita/
+
+all: quickref
+
+quickref: tactic_quickref.xml
+tactic_quickref.xml: xsl/tactic_quickref.xsl sec_tactics.xml
+       $(XSLTPROC) $< matita.xml > tactic_quickref.xml
+
 # one of: "fop", "pdflatex"
 PDF_METHOD=pdflatex
 
 # one of: "docbook2tex", "xsl"
 TEX_METHOD=xsl
 
-all: html txt
-
 clean:
        rm -f *.html *.fo *.pdf
        rm -rf $(filter-out version.txt,$(wildcard *.txt))
@@ -46,7 +52,7 @@ txt-stamp: html-stamp
        $(MAKE) $(TXTS)
        touch $@
 %.txt: %.html
-       w3m -dump $< > $@
+       w3m -dump -no-graph $< > $@
 
 # PDF generation
 
@@ -77,5 +83,17 @@ endif
 %.ps: %.dvi
        dvips $<
 
+# installation
+
+install: install-html
+install-html: html-stamp
+       cp *.html *.css $(DESTDIR)
+
+# shotcuts
+
+tex: $(patsubst %.xml,%.tex,$(MAIN))
+dvi: $(patsubst %.xml,%.dvi,$(MAIN))
+ps: $(patsubst %.xml,%.ps,$(MAIN))
+
 .PRECIOUS: matita.tex matita.dvi