Commit | Line | Data |
---|---|---|
c369c819 | 1 | ## -*-makefile-*- |
2 | ## | |
e5ce4845 | 3 | ## $Id$ |
c369c819 | 4 | ## |
5 | ## Build system for mdwfonts | |
6 | ## | |
7 | ## (c) 2002 Mark Wooding | |
8 | ## | |
9 | ||
10 | ##----- Licensing notice ---------------------------------------------------- | |
11 | ## | |
12 | ## This file is part of the mdwfonts font configuration system. | |
13 | ## | |
14 | ## mdwfonts is free software; you can redistribute it and/or modify | |
15 | ## it under the terms of the GNU General Public License as published by | |
16 | ## the Free Software Foundation; either version 2 of the License, or | |
17 | ## (at your option) any later version. | |
18 | ## | |
19 | ## mdwfonts is distributed in the hope that it will be useful, | |
20 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ## GNU General Public License for more details. | |
23 | ## | |
24 | ## You should have received a copy of the GNU General Public License | |
25 | ## along with mdwfonts; if not, write to the Free Software Foundation, | |
26 | ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
27 | ||
28 | ##----- Revision history ---------------------------------------------------- | |
29 | ## | |
30 | ## $Log: Makefile.m4,v $ | |
91fa74d7 | 31 | ## Revision 1.3 2002/02/24 15:21:44 mdw |
32 | ## Ship all the intermediate files too. | |
33 | ## | |
a8ca648c | 34 | ## Revision 1.2 2002/02/24 12:34:46 mdw |
35 | ## Don't install intermediate results. It messes everything up. | |
36 | ## | |
c369c819 | 37 | ## Revision 1.1 2002/02/19 22:54:13 mdw |
38 | ## Initial revision. | |
39 | ## | |
40 | ## Revision 1.2 2002/02/03 20:57:21 mdw | |
41 | ## Sort out distribution. | |
42 | ## | |
43 | ## Revision 1.1 2002/02/03 20:49:02 mdw | |
44 | ## Checkin for new build system. | |
45 | ## | |
46 | ||
47 | AUTOMAKE_OPTIONS = foreign | |
48 | ||
49 | texmfdir = @texmfdir@ | |
50 | pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} | |
51 | pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} | |
52 | pkgtfmdir = ${texmfdir}/fonts/tfm/${PACKAGE} | |
53 | pkgvfdir = ${texmfdir}/fonts/vf/${PACKAGE} | |
54 | pkgetxdir = ${texmfdir}/tex/fontinst/${PACKAGE} | |
e5ce4845 | 55 | pkmapdir = ${texmfdir}/dvips/${PACKAGE} |
c369c819 | 56 | |
57 | FONTINST = @FONTINST@ | |
58 | ||
59 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') | |
60 | define(`BASE', `mdwfonts') | |
61 | define(`TFMBASE', `\ | |
a8ca648c | 62 | pcrb8rn pcrbo8rn pcrr8rn pcrro8rn') |
c369c819 | 63 | define(`VFBASE', `\ |
64 | pcrb7tn pcrb8tn pcrbc7tn pcrbc8tn pcrbo7tn pcrbo8tn pcrr7tn pcrr8tn \ | |
65 | pcrrc7tn pcrrc8tn pcrro7tn pcrro8tn zpplcmr zpplcmrm') | |
66 | ||
67 | AUX = gpl.tex | |
68 | SRC = addsuffix(BASE, `.dtx') | |
69 | DVI = addsuffix(BASE, `.dvi') | |
70 | ETX = ot1tt.etx ot1ctt.etx | |
e5ce4845 | 71 | INS = mdwfonts.sty mdwfonts.tex mttpcr.fd |
72 | MAP = mdwfonts.map | |
c369c819 | 73 | FD = omlpplcm.fd ot1pplcm.fd |
74 | PL = addsuffix(TFMBASE, `.pl') | |
75 | VPL = addsuffix(VFBASE, `.vpl') | |
76 | TFM = addsuffix(TFMBASE, `.tfm') addsuffix(VFBASE, `.tfm') | |
77 | VF = addsuffix(VFBASE, `.vf') | |
78 | ||
79 | pkglatex_DATA = $(INS) $(FD) | |
80 | pkgdoc_DATA = $(DVI) | |
81 | pkgtfm_DATA = $(TFM) | |
82 | pkgvf_DATA = $(VF) | |
83 | pkgetx_DATA = $(ETX) | |
e5ce4845 | 84 | pkmap_DATA = $(MAP) |
c369c819 | 85 | |
86 | SUFFIXES = .dtx .dvi .vf .tfm .pl .vpl | |
87 | define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" | |
88 | latex "\def\indexing{y} \nonstopmode \input $<" | |
89 | makeindex -s gind.ist $`'*.idx | |
90 | latex "\def\indexing{n} \nonstopmode \input $<"') | |
91 | ||
98eaa213 MW |
92 | $(DVI): $(AUX) $(INS) |
93 | .dtx.dvi: run_latex | |
c369c819 | 94 | .vpl.tfm:; vptovf $< |
95 | .pl.tfm:; pltotf $< | |
96 | .vpl.vf:; vptovf $< | |
97 | ||
98 | $(ETX) $(INS): $(SRC) mdwfonts.ins | |
99 | tex "\nonstopmode \input mdwfonts.ins" | |
100 | $(FD) $(VF) $(PL) $(VPL): mdwfonts.tex $(ETX) | |
101 | $(FONTINST) "\nonstopmode \input mdwfonts.tex" | |
102 | ||
103 | EXTRA_DIST = \ | |
91fa74d7 | 104 | $(SRC) $(AUX) $(INS) $(ETX) $(FD) $(TFM) $(VF) $(PL) $(VPL) $(DVI) \ |
c369c819 | 105 | mdwfonts.ins Makefile.m4 |
106 | ||
107 | MAINTAINERCLEANFILES = $(INS) $(ETX) $(TFM) $(VF) $(DVI) *.fd | |
108 | CLEANFILES = \ | |
98eaa213 MW |
109 | *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.vpl \ |
110 | p*.pl p*.mtx c*.mtx | |
111 | ||
c369c819 | 112 | Makefile.am: Makefile.m4 |
113 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am | |
114 | ||
115 | .PHONY: dvi | |
116 | ||
117 | ##----- That's all, folks --------------------------------------------------- |