source: trunk/perl/Makefile @ 176

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
5SOURCES= \
6    perl.tex
7
8perl_INCLUDE = \
9        introduction.tex \
10    variables.tex \
11        syntaxe.tex \
12        variablesbis.tex \
13        chaines.tex \
14        conclusion.tex \
15
16FIGURES= \
17
18IMAGES= $(IMAGESJPG) $(IMAGESPNG)
19
20IMAGESJPG= \
21        Angel_fish.jpg \
22        tableau.jpg \
23        hache.jpg
24
25IMAGESPNG= \
26        mongueurs.png \
27
28EXAMPLES = 
29
30DVI=$(SOURCES:.tex=.dvi)
31PDF=$(SOURCES:.tex=.pdf)
32EPS= $(FIGEPS) $(PNGEPS) $(JPGEPS)
33
34FIGEPS = $(FIGURES:.fig=.eps) 
35
36PNGEPS = $(IMAGESPNG:.png=.eps)
37
38JPGEPS = $(IMAGESJPG:.jpg=.eps)
39
40all: pdf
41
42pdf: $(EPS) $(PDF)
43
44dvi: $(EPS) $(DVI)
45
46perl.pdf: perl.tex $(perl_INCLUDE) Makefile
47        pdflatex -halt-on-error $< && pdflatex -halt-on-error $<
48
49perl.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
61clean:
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.