PAR: includes from previously enabled PARfiles
[u/mrichter/AliRoot.git] / doc / aliroot-primer / Makefile
1 FILE            = primer
2 EPSS            = picts/Parab.eps                       \
3                   picts/ReconstructionFramework.eps     \
4                   picts/SimulationFramework.eps         \
5                   picts/alienfig7.eps                   \
6                   picts/aligen.eps                      \
7                   picts/cocktail.eps                    \
8                   picts/evglib.eps                      \
9                   picts/folderstruct.eps                \
10                   picts/kaon.eps                        \
11                   picts/loaderdiagram.eps               \
12                   picts/partcuts.eps                    \
13                   picts/phipp.eps                       \
14                   picts/vmc.eps                         \
15                   picts/tagana.eps                      \
16                   picts/tagsources.eps                  \
17                   picts/tagpost.eps
18 PDFS            = $(EPSS:%.eps=%.pdf)
19 LATEX           = latex
20 PDFLATEX        = pdflatex
21 DVIPS           = dvips 
22 PSTOPDF         = epstopdf 
23
24 %.aux:  %.tex
25         $(LATEX) $< 
26
27 %.dvi:  %.aux
28         $(LATEX) $* 
29
30 %.ps:   %.dvi 
31         $(DVIPS) $< -o $@ 
32
33 %.pdf:  %.tex
34         $(PDFLATEX) $*
35         $(PDFLATEX) $*
36
37 %.pdf:  %.eps
38         $(PSTOPDF) $< 
39
40 default: $(FILE).pdf
41
42 clean:
43         rm -f   $(FILE).dvi     \
44                 $(FILE).aux     \
45                 $(FILE).toc     \
46                 $(FILE).log     \
47                 $(FILE).ps      \
48                 $(FILE).out     \
49                 $(FILE).lol     \
50                 $(FILE).pdf $(PDFS)
51
52
53 dist:
54         mkdir -p aliroot-primer 
55         cp -a $(FILE).tex aliroot-primer/
56         cp -a $(EPSS)     aliroot-primer/
57         cp -a Makefile    aliroot-primer/
58         cp -a scripts     aliroot-primer/
59         tar -cvf - aliroot-primer | gzip - > aliroot-primer.tar.gz 
60         rm -rf aliroot-primer 
61
62 $(FILE).dvi:$(FILE).aux $(EPSS)
63 $(FILE).pdf:$(FILE).tex $(PDFS)