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

Last change on this file since 407 was 363, checked in by revillet, 13 years ago
  • correction following last ISMAD meeting (orthographe not yet corrected)
  • 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        generalite_imperatifs.tex \
29    ocaml.tex \
30    haskell.tex \
31        lexique.tex \
32        conclusion.tex \
33        commlang.tex \
34
35FIGURES= \
36
37IMAGES= \
38        lang_call.png
39
40EXAMPLES = \
41
42DVI=$(SOURCES:.tex=.dvi)
43PDF=$(SOURCES:.tex=.pdf)
44EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
45
46DEPENDENCIES = $(INCLUDED)
47
48all: main.pdf main.handout.pdf main.article.pdf
49
50pdf: $(EPS) $(PDF)
51
52dvi: $(EPS) $(DVI)
53
54pesentation.dvi:
55
56%.dvi: %.tex $(EPS) $(DEPENDENCIES)
57        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
58
59main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
60        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
61
62main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
63        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
64
65main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
66        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
67
68%.eps: %.fig
69        fig2dev -L eps  $< $@
70
71.png.eps:
72        convert $< $@
73
74main.handout.tex: main.tex Makefile
75        cat $< | sed 's/notes/handout/' > $@
76
77main.article.tex: main.tex Makefile
78        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@
79
80lang_call.png: ../images/lang_call.txt Makefile
81        circo $< -o$@ -Tpng
82#       twopi $< -o$@ -Tpng
83#       dot $< -o$@ -Tpng
84
85clean:
86        rm -f $(EPS)
87        rm -f $(DVI)
88        rm -f $(PDF)
89
90.PHONY: clean
Note: See TracBrowser for help on using the repository browser.