Last change
on this file since 282 was
281,
checked in by nanardon, 13 years ago
|
|
-
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 | |
---|
5 | SOURCES= \ |
---|
6 | main.tex \ |
---|
7 | main.handout.tex \ |
---|
8 | main.article.tex \ |
---|
9 | |
---|
10 | INCLUDED = \ |
---|
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 | |
---|
24 | FIGURES= \ |
---|
25 | |
---|
26 | IMAGES= \ |
---|
27 | |
---|
28 | EXAMPLES = \ |
---|
29 | |
---|
30 | DVI=$(SOURCES:.tex=.dvi) |
---|
31 | PDF=$(SOURCES:.tex=.pdf) |
---|
32 | EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps) |
---|
33 | |
---|
34 | DEPENDENCIES = $(INCLUDED) |
---|
35 | |
---|
36 | all: main.pdf main.handout.pdf main.article.pdf |
---|
37 | |
---|
38 | pdf: $(EPS) $(PDF) |
---|
39 | |
---|
40 | dvi: $(EPS) $(DVI) |
---|
41 | |
---|
42 | pesentation.dvi: |
---|
43 | |
---|
44 | %.dvi: %.tex $(EPS) $(DEPENDENCIES) |
---|
45 | (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false) |
---|
46 | |
---|
47 | main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf |
---|
48 | (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false) |
---|
49 | |
---|
50 | main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES) |
---|
51 | (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false) |
---|
52 | |
---|
53 | main.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 | |
---|
62 | main.handout.tex: main.tex Makefile |
---|
63 | cat $< | sed 's/notes/handout/' > $@ |
---|
64 | |
---|
65 | main.article.tex: main.tex Makefile |
---|
66 | cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@ |
---|
67 | |
---|
68 | clean: |
---|
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.