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
RevLine 
[125]1# $Id: Makefile 113 2006-07-07 10:02:33Z nanardon $
2
3.SUFFIXES: .dvi .pdf .eps .fig .png
4
5SOURCES= \
[246]6        main.tex \
7        main.handout.tex
[125]8
[246]9INCLUDED = \
10        usage.tex \
[248]11        building.tex \
12        admin.tex
[246]13
[125]14FIGURES= \
15
16
17IMAGES= \
18
19EXAMPLES = \
20
21DVI=$(SOURCES:.tex=.dvi)
22PDF=$(SOURCES:.tex=.pdf)
23EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
24
[246]25DEPENDENCIES = $(INCLUDED)
26
[125]27all: pdf
28
29pdf: $(EPS) $(PDF)
30
31dvi: $(EPS) $(DVI)
32
33pesentation.dvi:
34
[246]35%.dvi: %.tex $(EPS) $(DEPENDENCIES)
[129]36        (latex -halt-on-error $< && latex -halt-on-error $<) || (rm $@ && /bin/false)
[125]37
[246]38%.pdf: %.tex $(DEPENDENCIES)
39        (pdflatex -halt-on-error $< && pdflatex -halt-on-error $<) || (rm $@ && /bin/false)
[125]40
41%.eps: %.fig
42        fig2dev -L eps  $< $@
43
44.png.eps:
45        convert $< $@
46
[246]47main.handout.tex: main.tex
48        cat $< | sed 's/notes/handout/' > $@
49
[125]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.