source: trunk/fairerpms/Makefile @ 115

Last change on this file since 115 was 113, checked in by nanardon, 18 years ago

r1206@localhost: olivier | 2006-07-04 14:54:26 +0200

  • better makefile
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 556 bytes
Line 
1# $Id$
2
3.SUFFIXES: .dvi .pdf .eps .fig .png
4
5SOURCES= \
6        presentation.tex presentation_en.tex
7
8FIGURES= \
9        rpm-building.fig rpm-building-en.fig
10
11IMAGES= \
12
13EXAMPLES = \
14        simple.spec \
15        rpmmacros
16
17DVI=$(SOURCES:.tex=.dvi)
18PDF=$(SOURCES:.tex=.pdf)
19EPS=$(FIGURES:.fig=.eps) $(IMAGES:.png=.eps)
20
21all: pdf
22
23pdf: $(EPS) $(PDF)
24
25dvi: $(EPS) $(DVI)
26
27pesentation.dvi:
28
29%.dvi: %.tex $(EPS)
30        latex $<
31        latex $<
32
33%.pdf: %.dvi
34        dvipdf $< $@
35
36%.eps: %.fig
37        fig2dev -L eps  $< $@
38
39.png.eps:
40        convert $< $@
41
42clean:
43        rm -f $(EPS)
44        rm -f $(DVI)
45        rm -f $(PDF)
46
47.PHONY: clean
Note: See TracBrowser for help on using the repository browser.