Debian Codegraph @

texmf-dist/doc/latex/curve/examples/Makefile

raw
1 ### Makefile --- Makefile for CurVe examples
2
3 ## Copyright (C) 2010 Didier Verna
4
5 ## Author: Didier Verna <[email protected]>
6 ## Maintainer: Didier Verna <[email protected]>
7 ## Created: Mon Dec 6 11:13:27 2010
8 ## Last Revision: Mon Dec 6 11:25:22 2010
9
10 ## This file is part of CurVe.
11
12 ## CurVe may be distributed and/or modified under the
13 ## conditions of the LaTeX Project Public License, either version 1.1
14 ## of this license or (at your option) any later version.
15 ## The latest version of this license is in
16 ## http://www.latex-project.org/lppl.txt
17 ## and version 1.1 or later is part of all distributions of LaTeX
18 ## version 1999/06/01 or later.
19
20 ## CurVe consists of the files listed in the file `README'.
21
22
23 ### Commentary:
24
25 ## Contents management by FCM version 0.1.
26
27
28 ### Code:
29
30 TEXI2DVI := texi2dvi
31
32 BIB_EXAMPLES = bib splitbib
33 EXAMPLES := raw $(BIB_EXAMPLES)
34
35 PDF_BIB_EXAMPLES = $(BIB_EXAMPLES:%=%.pdf)
36 DVI_BIB_EXAMPLES = $(BIB_EXAMPLES:%=%.dvi)
37 ALL_BIB_EXAMPLES = $(PDF_BIB_EXAMPLES) $(DVI_BIB_EXAMPLES)
38
39 PDF_EXAMPLES = $(EXAMPLES:%=%.pdf)
40 DVI_EXAMPLES = $(EXAMPLES:%=%.dvi)
41 ALL_EXAMPLES = $(PDF_EXAMPLES) $(DVI_EXAMPLES)
42
43
44 all:
45 @echo "Please use either the pdf or the dvi target."
46 pdf: $(PDF_EXAMPLES)
47 dvi: $(DVI_EXAMPLES)
48
49 $(ALL_BIB_EXAMPLES): bib.bib
50 $(ALL_EXAMPLES): rubric.tex
51
52
53 %.pdf: %.tex
54 $(TEXI2DVI) -p $<
55
56 %.dvi: %.tex
57 $(TEXI2DVI) $<
58
59
60 clean:
61 -rm *~ *.aux *.lo* *.bbl *.blg *.sbb *.out
62
63 distclean: clean
64 -rm $(ALL_EXAMPLES)
65
66
67 .PHONY: all pdf dvi clean distclean
68
69
70 ### Makefile ends here