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