2 include ../../../Makefile.defs
5 XHTML_XSL=xsl/matita-xhtml.xsl
7 DEPS := $(wildcard *.xml)
9 DESTDIR = /usr/local/share/doc/matita/
11 all: quickref-stamp html-stamp pdf-stamp
13 quickref-stamp: tactics_quickref.xml declarative_tactics_quickref.xml
16 tactics_quickref.xml: xsl/tactic_quickref.xsl sec_tactics.xml
17 $(XSLTPROC) --param declarative "''" $< matita.xml > $@
18 declarative_tactics_quickref.xml: xsl/tactic_quickref.xsl sec_declarative_tactics.xml
19 $(XSLTPROC) --param declarative "'declarative_'" $< matita.xml > $@
21 html: quickref-stamp html-stamp
22 html-stamp: $(MAIN) $(DEPS) $(XHTML_XSL)
23 $(XSLTPROC) $(XHTML_XSL) $<
26 pdf: quickref-stamp pdf-stamp
27 pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN))
31 dblatex -rscripts/fix-symbols.sh -tpdf $<
33 dblatex -rscripts/fix-symbols.sh -tdvi $<
35 dblatex -rscripts/fix-symbols.sh -tps $<
37 install: install-html install-pdf
38 install-pdf: pdf-stamp
39 mkdir -p $(DESTDIR)/pdf
40 cp matita.pdf $(DESTDIR)/pdf
42 install-html: html-stamp
43 mkdir -p $(DESTDIR)/html
44 cp *.html *.css $(DESTDIR)/html
45 test -d $(DESTDIR)/html/figures || mkdir $(DESTDIR)/html/figures
46 cp figures/* $(DESTDIR)/html/figures/
49 rm -f *.html *.pdf *.ps *.dvi *.tex