X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2FMakefile;h=817d6964ae2bb125cc21d8e472707e3ed4be88ec;hb=e880d6eab5e1700f4a625ddcd7d0fa8f0cce2dcc;hp=ad3ad64339813b30e7d1cad7045f7aa78cd788ac;hpb=1da3c8d481853c3d6b9f33385ebde848866a37b5;p=helm.git diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index ad3ad6433..817d6964a 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -1,12 +1,51 @@ + +include ../../../Makefile.defs + 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: -%.html: %.xml - xsltproc $(XHTML_XSL) $< > $@ -%.fo: %.xml - xsltproc $(FO_XSL) $< > $@ -%.pdf: %.fo - fop $< $@ +XHTML_XSL=xsl/matita-xhtml.xsl +MAIN=matita.xml +DEPS := $(wildcard *.xml) + +DESTDIR = /usr/local/share/doc/matita/ + +all: quickref-stamp html-stamp pdf-stamp + +quickref-stamp: tactics_quickref.xml declarative_tactics_quickref.xml + touch $@ + +tactics_quickref.xml: xsl/tactic_quickref.xsl sec_tactics.xml + $(XSLTPROC) --param declarative "''" $< matita.xml > $@ +declarative_tactics_quickref.xml: xsl/tactic_quickref.xsl sec_declarative_tactics.xml + $(XSLTPROC) --param declarative "'declarative_'" $< matita.xml > $@ + +html: quickref-stamp html-stamp +html-stamp: $(MAIN) $(DEPS) $(XHTML_XSL) + $(XSLTPROC) $(XHTML_XSL) $< + touch $@ + +pdf: quickref-stamp pdf-stamp +pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN)) + touch $@ + +%.pdf: %.xml + dblatex -rscripts/fix-symbols.sh -tpdf $< +%.dvi: %.xml + dblatex -rscripts/fix-symbols.sh -tdvi $< +%.ps: %.xml + dblatex -rscripts/fix-symbols.sh -tps $< + +install: install-html install-pdf +install-pdf: pdf-stamp + mkdir -p $(DESTDIR)/pdf + cp matita.pdf $(DESTDIR)/pdf + +install-html: html-stamp + mkdir -p $(DESTDIR)/html + cp *.html *.css $(DESTDIR)/html + test -d $(DESTDIR)/html/figures || mkdir $(DESTDIR)/html/figures + cp figures/* $(DESTDIR)/html/figures/ + clean: - rm -f *.html *.fo *.pdf + rm -f *.html *.pdf *.ps *.dvi *.tex + rm -f *-stamp +