Don't install intermediate results. It messes everything up.
[mdwfonts] / Makefile.m4
CommitLineData
c369c819 1## -*-makefile-*-
2##
a8ca648c 3## $Id: Makefile.m4,v 1.2 2002/02/24 12:34:46 mdw Exp $
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 $
a8ca648c 31## Revision 1.2 2002/02/24 12:34:46 mdw
32## Don't install intermediate results. It messes everything up.
33##
c369c819 34## Revision 1.1 2002/02/19 22:54:13 mdw
35## Initial revision.
36##
37## Revision 1.2 2002/02/03 20:57:21 mdw
38## Sort out distribution.
39##
40## Revision 1.1 2002/02/03 20:49:02 mdw
41## Checkin for new build system.
42##
43
44AUTOMAKE_OPTIONS = foreign
45
46texmfdir = @texmfdir@
47pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
48pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
49pkgtfmdir = ${texmfdir}/fonts/tfm/${PACKAGE}
50pkgvfdir = ${texmfdir}/fonts/vf/${PACKAGE}
51pkgetxdir = ${texmfdir}/tex/fontinst/${PACKAGE}
52
53FONTINST = @FONTINST@
54
55define(`addsuffix', `patsubst(`$1', `\>', `$2')')
56define(`BASE', `mdwfonts')
57define(`TFMBASE', `\
a8ca648c 58 pcrb8rn pcrbo8rn pcrr8rn pcrro8rn')
c369c819 59define(`VFBASE', `\
60 pcrb7tn pcrb8tn pcrbc7tn pcrbc8tn pcrbo7tn pcrbo8tn pcrr7tn pcrr8tn \
61 pcrrc7tn pcrrc8tn pcrro7tn pcrro8tn zpplcmr zpplcmrm')
62
63AUX = gpl.tex
64SRC = addsuffix(BASE, `.dtx')
65DVI = addsuffix(BASE, `.dvi')
66ETX = ot1tt.etx ot1ctt.etx
67INS = mdwfonts.sty mdwfonts.tex mdwfonts.map mttpcr.fd
68FD = omlpplcm.fd ot1pplcm.fd
69PL = addsuffix(TFMBASE, `.pl')
70VPL = addsuffix(VFBASE, `.vpl')
71TFM = addsuffix(TFMBASE, `.tfm') addsuffix(VFBASE, `.tfm')
72VF = addsuffix(VFBASE, `.vf')
73
74pkglatex_DATA = $(INS) $(FD)
75pkgdoc_DATA = $(DVI)
76pkgtfm_DATA = $(TFM)
77pkgvf_DATA = $(VF)
78pkgetx_DATA = $(ETX)
79
80SUFFIXES = .dtx .dvi .vf .tfm .pl .vpl
81define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<"
82 latex "\def\indexing{y} \nonstopmode \input $<"
83 makeindex -s gind.ist $`'*.idx
84 latex "\def\indexing{n} \nonstopmode \input $<"')
85
86.dtx.dvi: $(AUX)
87 run_latex
88.vpl.tfm:; vptovf $<
89.pl.tfm:; pltotf $<
90.vpl.vf:; vptovf $<
91
92$(ETX) $(INS): $(SRC) mdwfonts.ins
93 tex "\nonstopmode \input mdwfonts.ins"
94$(FD) $(VF) $(PL) $(VPL): mdwfonts.tex $(ETX)
95 $(FONTINST) "\nonstopmode \input mdwfonts.tex"
96
97EXTRA_DIST = \
98 $(SRC) $(AUX) $(INS) $(ETX) $(FD) $(TFM) $(VF) $(DVI) \
99 mdwfonts.ins Makefile.m4
100
101MAINTAINERCLEANFILES = $(INS) $(ETX) $(TFM) $(VF) $(DVI) *.fd
102CLEANFILES = \
103 *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans \
104 *.pl *.vpl *.mtx
105Makefile.am: Makefile.m4
106 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
107
108.PHONY: dvi
109
110##----- That's all, folks ---------------------------------------------------