source: trunk/presentation-langages/Makefile @ 282

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