Commit | Line | Data |
---|---|---|
407a7e92 | 1 | ## -*-m4-*- |
c369c819 | 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. | |
407a7e92 | 16 | ## |
c369c819 | 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. | |
407a7e92 | 21 | ## |
c369c819 | 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 | 26 | AUTOMAKE_OPTIONS = foreign |
27 | ||
41d89408 MW |
28 | texmfpath = @texmfpath@ |
29 | pkglatexdir = ${texmfpath}/tex/latex/${PACKAGE} | |
30 | pkgdocdir = ${texmfpath}/doc/latex/${PACKAGE} | |
31 | pkgtfmdir = ${texmfpath}/fonts/tfm/${PACKAGE} | |
32 | pkgvfdir = ${texmfpath}/fonts/vf/${PACKAGE} | |
33 | pkgetxdir = ${texmfpath}/tex/fontinst/${PACKAGE} | |
34 | pkmapdir = ${texmfpath}/dvips/${PACKAGE} | |
c369c819 | 35 | |
36 | FONTINST = @FONTINST@ | |
37 | ||
38 | define(`addsuffix', `patsubst(`$1', `\>', `$2')') | |
39 | define(`BASE', `mdwfonts') | |
40 | define(`TFMBASE', `\ | |
a8ca648c | 41 | pcrb8rn pcrbo8rn pcrr8rn pcrro8rn') |
c369c819 | 42 | define(`VFBASE', `\ |
43 | pcrb7tn pcrb8tn pcrbc7tn pcrbc8tn pcrbo7tn pcrbo8tn pcrr7tn pcrr8tn \ | |
44 | pcrrc7tn pcrrc8tn pcrro7tn pcrro8tn zpplcmr zpplcmrm') | |
45 | ||
46 | AUX = gpl.tex | |
47 | SRC = addsuffix(BASE, `.dtx') | |
48 | DVI = addsuffix(BASE, `.dvi') | |
407a7e92 MW |
49 | PS = addsuffix(BASE, `.ps') |
50 | PDF = addsuffix(BASE, `.pdf') | |
c369c819 | 51 | ETX = ot1tt.etx ot1ctt.etx |
e5ce4845 | 52 | INS = mdwfonts.sty mdwfonts.tex mttpcr.fd |
53 | MAP = mdwfonts.map | |
c369c819 | 54 | FD = omlpplcm.fd ot1pplcm.fd |
55 | PL = addsuffix(TFMBASE, `.pl') | |
56 | VPL = addsuffix(VFBASE, `.vpl') | |
57 | TFM = addsuffix(TFMBASE, `.tfm') addsuffix(VFBASE, `.tfm') | |
58 | VF = addsuffix(VFBASE, `.vf') | |
59 | ||
60 | pkglatex_DATA = $(INS) $(FD) | |
407a7e92 | 61 | pkgdoc_DATA = $(DVI) $(PS) $(PDF) |
c369c819 | 62 | pkgtfm_DATA = $(TFM) |
63 | pkgvf_DATA = $(VF) | |
64 | pkgetx_DATA = $(ETX) | |
e5ce4845 | 65 | pkmap_DATA = $(MAP) |
c369c819 | 66 | |
407a7e92 | 67 | SUFFIXES = .dtx .dvi .vf .tfm .pl .vpl .ps .pdf |
c369c819 | 68 | define(`run_latex', `latex "\def\indexing{n} \nonstopmode \input $<" |
69 | latex "\def\indexing{y} \nonstopmode \input $<" | |
70 | makeindex -s gind.ist $`'*.idx | |
71 | latex "\def\indexing{n} \nonstopmode \input $<"') | |
72 | ||
98eaa213 MW |
73 | $(DVI): $(AUX) $(INS) |
74 | .dtx.dvi: run_latex | |
407a7e92 MW |
75 | .dvi.ps:; dvips $< |
76 | .ps.pdf:; ps2pdf $< $@ | |
c369c819 | 77 | .vpl.tfm:; vptovf $< |
78 | .pl.tfm:; pltotf $< | |
79 | .vpl.vf:; vptovf $< | |
80 | ||
81 | $(ETX) $(INS): $(SRC) mdwfonts.ins | |
82 | tex "\nonstopmode \input mdwfonts.ins" | |
83 | $(FD) $(VF) $(PL) $(VPL): mdwfonts.tex $(ETX) | |
84 | $(FONTINST) "\nonstopmode \input mdwfonts.tex" | |
85 | ||
86 | EXTRA_DIST = \ | |
91fa74d7 | 87 | $(SRC) $(AUX) $(INS) $(ETX) $(FD) $(TFM) $(VF) $(PL) $(VPL) $(DVI) \ |
c369c819 | 88 | mdwfonts.ins Makefile.m4 |
89 | ||
90 | MAINTAINERCLEANFILES = $(INS) $(ETX) $(TFM) $(VF) $(DVI) *.fd | |
91 | CLEANFILES = \ | |
98eaa213 | 92 | *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.vpl \ |
407a7e92 | 93 | p*.pl p*.mtx c*.mtx *.ps *.pdf |
98eaa213 | 94 | |
c369c819 | 95 | Makefile.am: Makefile.m4 |
96 | cd $(srcdir) && m4 Makefile.m4 >Makefile.am | |
97 | ||
98 | .PHONY: dvi | |
99 | ||
100 | ##----- That's all, folks --------------------------------------------------- |