source: trunk/presentation-langages/Makefile @ 280

Last change on this file since 280 was 280, checked in by nanardon, 13 years ago
  • add ruby's slides
  • 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    idl.tex \
17    generalite_fonctionnel.tex \
18    ocaml.tex \
19    haskell.tex \
20        perl.tex \
21        ruby.tex \
22
23FIGURES= \
24
25IMAGES= \
26
27EXAMPLES = \
28
29DVI=$(SOURCES:.tex=.dvi)
30PDF=$(SOURCES:.tex=.pdf)
31EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
32
33DEPENDENCIES = $(INCLUDED)
34
35all: main.pdf main.handout.pdf main.article.pdf
36
37pdf: $(EPS) $(PDF)
38
39dvi: $(EPS) $(DVI)
40
41pesentation.dvi:
42
43%.dvi: %.tex $(EPS) $(DEPENDENCIES)
44        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
45
46main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
47        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
48
49main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
50        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
51
52main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
53        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
54
55%.eps: %.fig
56        fig2dev -L eps  $< $@
57
58.png.eps:
59        convert $< $@
60
61main.handout.tex: main.tex Makefile
62        cat $< | sed 's/notes/handout/' > $@
63
64main.article.tex: main.tex Makefile
65        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@
66
67clean:
68        rm -f $(EPS)
69        rm -f $(DVI)
70        rm -f $(PDF)
71
72.PHONY: clean
Note: See TracBrowser for help on using the repository browser.