source: trunk/formation-rpms/Makefile @ 248

Last change on this file since 248 was 248, checked in by nanardon, 15 years ago
  • some fix
  • switch to utf8
  • Property svn:eol-style set to native
File size: 840 bytes
Line 
1# $Id: Makefile 113 2006-07-07 10:02:33Z nanardon $
2
3.SUFFIXES: .dvi .pdf .eps .fig .png
4
5SOURCES= \
6        main.tex \
7        main.handout.tex
8
9INCLUDED = \
10        usage.tex \
11        building.tex \
12        admin.tex
13
14FIGURES= \
15
16
17IMAGES= \
18
19EXAMPLES = \
20
21DVI=$(SOURCES:.tex=.dvi)
22PDF=$(SOURCES:.tex=.pdf)
23EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
24
25DEPENDENCIES = $(INCLUDED)
26
27all: pdf
28
29pdf: $(EPS) $(PDF)
30
31dvi: $(EPS) $(DVI)
32
33pesentation.dvi:
34
35%.dvi: %.tex $(EPS) $(DEPENDENCIES)
36        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
37
38%.pdf: %.tex $(DEPENDENCIES)
39        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
40
41%.eps: %.fig
42        fig2dev -L eps  $< $@
43
44.png.eps:
45        convert $< $@
46
47main.handout.tex: main.tex
48        cat $< | sed 's/notes/handout/' > $@
49
50clean:
51        rm -f $(EPS)
52        rm -f $(DVI)
53        rm -f $(PDF)
54
55.PHONY: clean
Note: See TracBrowser for help on using the repository browser.