Last change
on this file since 176 was
172,
checked in by nanardon, 16 years ago
|
- add Makefile as dependency
|
-
Property svn:eol-style set to
native
|
File size:
985 bytes
|
Line | |
---|
1 | # $Id: Makefile 113 2006-07-07 10:02:33Z nanardon $ |
---|
2 | |
---|
3 | .SUFFIXES: .dvi .pdf .eps .fig .png .jpg |
---|
4 | |
---|
5 | SOURCES= \ |
---|
6 | perl.tex |
---|
7 | |
---|
8 | perl_INCLUDE = \ |
---|
9 | introduction.tex \ |
---|
10 | variables.tex \ |
---|
11 | syntaxe.tex \ |
---|
12 | variablesbis.tex \ |
---|
13 | chaines.tex \ |
---|
14 | conclusion.tex \ |
---|
15 | |
---|
16 | FIGURES= \ |
---|
17 | |
---|
18 | IMAGES= $(IMAGESJPG) $(IMAGESPNG) |
---|
19 | |
---|
20 | IMAGESJPG= \ |
---|
21 | Angel_fish.jpg \ |
---|
22 | tableau.jpg \ |
---|
23 | hache.jpg |
---|
24 | |
---|
25 | IMAGESPNG= \ |
---|
26 | mongueurs.png \ |
---|
27 | |
---|
28 | EXAMPLES = |
---|
29 | |
---|
30 | DVI=$(SOURCES:.tex=.dvi) |
---|
31 | PDF=$(SOURCES:.tex=.pdf) |
---|
32 | EPS= $(FIGEPS) $(PNGEPS) $(JPGEPS) |
---|
33 | |
---|
34 | FIGEPS = $(FIGURES:.fig=.eps) |
---|
35 | |
---|
36 | PNGEPS = $(IMAGESPNG:.png=.eps) |
---|
37 | |
---|
38 | JPGEPS = $(IMAGESJPG:.jpg=.eps) |
---|
39 | |
---|
40 | all: pdf |
---|
41 | |
---|
42 | pdf: $(EPS) $(PDF) |
---|
43 | |
---|
44 | dvi: $(EPS) $(DVI) |
---|
45 | |
---|
46 | perl.pdf: perl.tex $(perl_INCLUDE) Makefile |
---|
47 | pdflatex -halt-on-error $< && pdflatex -halt-on-error $< |
---|
48 | |
---|
49 | perl.dvi: perl.tex $(perl_INCLUDE) Makefile |
---|
50 | latex -halt-on-error $< && latex -halt-on-error $< |
---|
51 | |
---|
52 | %.eps: %.fig |
---|
53 | fig2dev -L eps $< $@ |
---|
54 | |
---|
55 | .png.eps: |
---|
56 | convert $< $@ |
---|
57 | |
---|
58 | .jpg.eps: |
---|
59 | convert $< $@ |
---|
60 | |
---|
61 | clean: |
---|
62 | rm -f $(FIGEPS) |
---|
63 | rm -f $(DVI) |
---|
64 | rm -f $(PDF) |
---|
65 | |
---|
66 | .PHONY: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.