source: trunk/presentation-langages/Makefile @ 328

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