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