X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2FMakefile;fp=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2FMakefile;h=b370567def24ba2a9a5ae804b9fa6d11961b5e00;hb=33cf2560332d4604382be34c632259ae7f264ac8;hp=dccc62ed6f74cee2f9a6d7369bf78b074fdd6b3c;hpb=013d4d79c16ee332672a64dca289979fe1e81348;p=helm.git diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index dccc62ed6..b370567de 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -1,10 +1,21 @@ XSLTPROC=xsltproc XHTML_XSL=matita-xhtml.xsl FO_XSL=matita-fo.xsl +TEX_XSL=matita-tex.xsl MAIN=matita.xml +# one of "fop", "pdflatex" +PDF_METHOD=pdflatex + all: html txt +clean: + rm -f *.html *.fo *.pdf + rm -rf $(filter-out version.txt,$(wildcard *.txt)) + rm -f *-stamp + rm -f matita.out matita.log matita.glo matita.dvi matita.idx + rm -f matita.aux matita.tex + # XHTMLs generation .PHONY: html @@ -29,12 +40,17 @@ txt-stamp: html-stamp pdf: pdf-stamp pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN)) touch $@ + %.fo: %.xml xsltproc $(FO_XSL) $< | xmllint --format - > $@ +%.tex: %.xml + xsltproc $(TEX_XSL) $< > $@ + +ifeq ($(PDF_METHOD),fop) %.pdf: %.fo fop $< $@ -clean: - rm -f *.html *.fo *.pdf - rm -rf $(filter-out version.txt,$(wildcard *.txt)) - rm -f *-stamp +else ifeq ($(PDF_METHOD),pdflatex) +%.pdf: %.tex + pdflatex $< +endif