source: trunk/sgdb/Makefile @ 414

Last change on this file since 414 was 307, checked in by nanardon, 13 years ago
  • add small talk about SGDB
  • Property svn:eol-style set to native
File size: 1.3 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
12FIGURES= \
13
14IMAGES= \
15
16EXAMPLES = \
17
18DVI=$(SOURCES:.tex=.dvi)
19PDF=$(SOURCES:.tex=.pdf)
20EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
21
22DEPENDENCIES = $(INCLUDED)
23
24all: main.pdf main.handout.pdf main.article.pdf
25
26pdf: $(EPS) $(PDF)
27
28dvi: $(EPS) $(DVI)
29
30pesentation.dvi:
31
32%.dvi: %.tex $(EPS) $(DEPENDENCIES)
33        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
34
35main.pdf: main.tex $(DEPENDENCIES) $(IMAGES) main.handout.pdf
36        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
37
38main.handout.pdf: main.handout.tex $(DEPENDENCIES) $(IMAGES)
39        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
40
41main.article.pdf: main.article.tex $(DEPENDENCIES) $(IMAGES)
42        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
43
44%.eps: %.fig
45        fig2dev -L eps  $< $@
46
47.png.eps:
48        convert $< $@
49
50main.handout.tex: main.tex Makefile
51        cat $< | sed 's/notes/handout/' > $@
52
53main.article.tex: main.tex Makefile
54        cat $< | sed 's/\\documentclass.*/\\documentclass[a4paper]{article}\\usepackage{beamerarticle}\\usepackage[a4paper]{geometry}/' > $@
55
56clean:
57        rm -f $(EPS)
58        rm -f $(DVI)
59        rm -f $(PDF)
60
61.PHONY: clean
Note: See TracBrowser for help on using the repository browser.