source: trunk/presentation-langages/Makefile @ 275

Last change on this file since 275 was 275, checked in by revillet, 13 years ago

-add python, clean main and create generalite_fonctionnel

  • Property svn:eol-style set to native
File size: 1.5 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    python.tex \
16    generalite_fonctionnel.tex \
17    ocaml.tex \
18    haskell.tex \
19
20FIGURES= \
21
22IMAGES= \
23
24EXAMPLES = \
25
26DVI=$(SOURCES:.tex=.dvi)
27PDF=$(SOURCES:.tex=.pdf)
28EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
29
30DEPENDENCIES = $(INCLUDED)
31
32all: main.pdf main.handout.pdf main.article.pdf
33
34pdf: $(EPS) $(PDF)
35
36dvi: $(EPS) $(DVI)
37
38pesentation.dvi:
39
40%.dvi: %.tex $(EPS) $(DEPENDENCIES)
41        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
42
43main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
44        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
45
46main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
47        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
48
49main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
50        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
51
52%.eps: %.fig
53        fig2dev -L eps  $< $@
54
55.png.eps:
56        convert $< $@
57
58main.handout.tex: main.tex Makefile
59        cat $< | sed 's/notes/handout/' > $@
60
61main.article.tex: main.tex Makefile
62        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@
63
64clean:
65        rm -f $(EPS)
66        rm -f $(DVI)
67        rm -f $(PDF)
68
69.PHONY: clean
Note: See TracBrowser for help on using the repository browser.