source: trunk/tp-perl/Makefile @ 264

Last change on this file since 264 was 264, checked in by nanardon, 13 years ago
  • introduction, tableaux
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Makefile 257 2010-07-11 19:20:34Z nanardon $
2
3.SUFFIXES: .dvi .pdf .eps .fig .png
4
5SOURCES= \
6        main.tex \
7        main.handout.tex \
8        main.article.tex \
9
10INCLUDED = \
11   hello-world.pl \
12   variable.pl \
13   exercice01.pl \
14   exercice02.pl \
15
16FIGURES= \
17
18IMAGES= \
19
20EXAMPLES = \
21
22DVI=$(SOURCES:.tex=.dvi)
23PDF=$(SOURCES:.tex=.pdf)
24EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
25
26DEPENDENCIES = $(INCLUDED)
27
28all: main.pdf
29
30pdf: $(EPS) $(PDF)
31
32dvi: $(EPS) $(DVI)
33
34pesentation.dvi:
35
36%.dvi: %.tex $(EPS) $(DEPENDENCIES)
37        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
38
39main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
40        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
41
42main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
43        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
44
45main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
46        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
47
48%.eps: %.fig
49        fig2dev -L eps  $< $@
50
51.png.eps:
52        convert $< $@
53
54main.handout.tex: main.tex Makefile
55        cat $< | sed 's/notes/handout/' > $@
56
57main.article.tex: main.tex Makefile
58        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\n\\usepackage{beamerarticle}\n\\usepackage[a4paper]{geometry}/' > $@
59
60clean:
61        rm -f $(EPS)
62        rm -f $(DVI)
63        rm -f $(PDF)
64
65.PHONY: clean
Note: See TracBrowser for help on using the repository browser.