source: trunk/presentation-langages/beamer/Makefile @ 347

Last change on this file since 347 was 344, checked in by revillet, 13 years ago
  • ajout d'un fichier introduction.tex pour l'introduction generale pour la partie beamer seulement
  • Property svn:eol-style set to native
File size: 1.8 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    introduction.tex \
12    resume.tex \
13    c.tex \
14    cpp.tex \
15    fortran.tex \
16        java.tex \
17        csharp.tex \
18        perl.tex \
19    python.tex \
20        ruby.tex \
21        php.tex \
22    scilab.tex \
23    matlab.tex \
24    r.tex \
25    idl.tex \
26    generalite_fonctionnel.tex \
27        generalite_applicatifs.tex \
28    ocaml.tex \
29    haskell.tex \
30        lexique.tex \
31        commlang.tex \
32
33FIGURES= \
34
35IMAGES= \
36        lang_call.png
37
38EXAMPLES = \
39
40DVI=$(SOURCES:.tex=.dvi)
41PDF=$(SOURCES:.tex=.pdf)
42EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
43
44DEPENDENCIES = $(INCLUDED)
45
46all: main.pdf main.handout.pdf main.article.pdf
47
48pdf: $(EPS) $(PDF)
49
50dvi: $(EPS) $(DVI)
51
52pesentation.dvi:
53
54%.dvi: %.tex $(EPS) $(DEPENDENCIES)
55        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
56
57main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
58        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
59
60main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
61        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
62
63main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
64        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
65
66%.eps: %.fig
67        fig2dev -L eps  $< $@
68
69.png.eps:
70        convert $< $@
71
72main.handout.tex: main.tex Makefile
73        cat $< | sed 's/notes/handout/' > $@
74
75main.article.tex: main.tex Makefile
76        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@
77
78lang_call.png: ../images/lang_call.txt Makefile
79        circo $< -o$@ -Tpng
80#       twopi $< -o$@ -Tpng
81#       dot $< -o$@ -Tpng
82
83clean:
84        rm -f $(EPS)
85        rm -f $(DVI)
86        rm -f $(PDF)
87
88.PHONY: clean
Note: See TracBrowser for help on using the repository browser.