Commit | Line | Data |
---|---|---|
1f84fc9c MW |
1 | ### -*-makefile-gmake-*- |
2 | ### | |
3 | ### Package-specfic definitions for the build script | |
4 | ### | |
5 | ### (c) 2020 Mark Wooding | |
6 | ### | |
7 | ||
8 | ###----- Licensing notice --------------------------------------------------- | |
9 | ### | |
10 | ### This file is part of the `mdwfonts' LaTeX package collection. | |
11 | ### | |
12 | ### `mdwfonts' is free software: you can redistribute it and/or modify it | |
13 | ### under the terms of the GNU General Public License as published by the | |
14 | ### Free Software Foundation; either version 2 of the License, or (at your | |
15 | ### option) any later version. | |
16 | ### | |
17 | ### `mdwfonts' is distributed in the hope that it will be useful, but | |
18 | ### WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 | ### 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 | ||
26 | ###-------------------------------------------------------------------------- | |
27 | ### Easy stuff. | |
28 | ||
29 | ## Package identification. | |
30 | PACKAGE = mdwfonts | |
31 | ||
32 | ## Installation files. | |
33 | INS = mdwfonts.ins | |
34 | ||
35 | ## Format the licence text. | |
36 | EXTRA += gpl.tex | |
37 | ||
38 | ###-------------------------------------------------------------------------- | |
39 | ### Installing the fonts. | |
40 | ||
41 | ## Additional tools. | |
42 | FONTINST = fontinst | |
43 | VPTOVF = vptovf | |
44 | PLTOTF = pltotf | |
45 | ||
46 | ## Transformed fonts (made by `\transformfont'; produces a `.pl' from which | |
47 | ## we make a `.tfm'). | |
48 | XFORM += $(foreach s,b bo r ro, pcr$s8rn) | |
49 | XFORM += pplr8r pplri8r | |
50 | XFORM += pzcmi8r | |
51 | mdwfonts.tex_OUT += $(addsuffix .pl,$(XFORM)) | |
52 | TFM += $(addsuffix .tfm,$(XFORM)) | |
53 | OUT += $(TFM) | |
54 | ||
55 | %.tfm: %.pl; $(call v_tag,PLTOTF,$@)$(PLTOTF) $< 2>$*.log | |
56 | ||
57 | ## Installed fonts (made by `\installfont'; produces a `.vpl' from which we | |
58 | ## make a `.tfm' and a `.vf'). | |
59 | INST += $(foreach f,pcrb pcrbc pcrbo pcrr pcrrc pcrro, \ | |
60 | $f7tn $f8tn) | |
61 | INST += zpplcmr zpplcmrm | |
62 | mdwfonts.tex_OUT += $(addsuffix .vpl,$(INST)) | |
63 | TFM += $(addsuffix .tfm,$(INST)) | |
64 | VF += $(addsuffix .vf,$(INST)) | |
65 | OUT += $(VF) | |
66 | ||
67 | %.tfm %.vf: %.vpl; $(call v_tag,VPTOVF,$@)$(VPTOVF) $< 2>$*.log | |
68 | ||
69 | ## Installed families (made by `\installfamily'; produces a `.fd'). | |
70 | FAM += ot1pplcm omlpplcm | |
71 | mdwfonts.tex_OUT += $(addsuffix .fd,$(FAM)) | |
72 | ||
73 | ## Run `fontinst' to generate the necessary things. | |
74 | $(eval $(call output-targets,$$(FONTINST),FONTINST,mdwfonts.tex)) | |
75 | OUT += $(mdwfonts.tex_OUT) | |
76 | ||
77 | ## Explain where to put all the files. | |
78 | pkglatex_FILES = $(filter %.fd %.sty %.tex,$(OUT)) | |
79 | ||
80 | INSTALLDIRS += pkgetx | |
81 | pkgetxdir = $(texmfdir)/tex/fontinst/$(PACKAGE) | |
82 | pkgetx_FILES = $(filter %.etx,$(OUT)) | |
83 | ||
84 | INSTALLDIRS += pkgmap | |
85 | pkgmapdir = $(texmfdir)/fonts/map/$(PACKAGE) | |
86 | pkgmap_FILES = $(filter %.map,$(OUT)) | |
87 | ||
88 | INSTALLDIRS += pkgtfm | |
89 | pkgtfmdir = $(texmfdir)/fonts/tfm/$(PACKAGE) | |
90 | pkgtfm_FILES = $(filter %.tfm,$(OUT)) | |
91 | ||
92 | INSTALLDIRS += pkgvf | |
93 | pkgvfdir = $(texmfdir)/fonts/vf/$(PACKAGE) | |
94 | pkgvf_FILES = $(filter %.vf,$(OUT)) | |
95 | ||
96 | ## Additional Debian machinery. | |
97 | DISTFILES += debian/mdwfonts.maps | |
98 | ||
99 | ###----- That's all, folks -------------------------------------------------- |