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
RevLine 
[91]1# $Id$
2
3.SUFFIXES: .dvi .pdf .eps .fig .png
4
5SOURCES= \
[106]6        presentation.tex presentation_en.tex
[91]7
8FIGURES= \
[109]9        rpm-building.fig rpm-building-en.fig
[91]10
11IMAGES= \
12
[92]13EXAMPLES = \
[97]14        simple.spec \
15        rpmmacros
[92]16
[91]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
[113]27pesentation.dvi:
28
29%.dvi: %.tex $(EPS)
[91]30        latex $<
[113]31        latex $<
[91]32
[113]33%.pdf: %.dvi
[91]34        dvipdf $< $@
35
[113]36%.eps: %.fig
[91]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.