Imported Upstream version 1.22.4
[platform/upstream/groff.git] / font / devlj4 / devlj4.am
1 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
2 #
3 # Last update: 13 Aug 2015
4 #
5 # This file is part of 'groff'.
6 #
7 # 'groff' is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # 'groff' is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 devlj4_srcdir = $(top_srcdir)/font/devlj4
21 LJ4RES = 1200
22 LJ4PRINT = $(PSPRINT)
23 DEVLJ4FONTFILES = \
24   font/devlj4/AB \
25   font/devlj4/ABI \
26   font/devlj4/AI \
27   font/devlj4/AR \
28   font/devlj4/ALBB \
29   font/devlj4/ALBR \
30   font/devlj4/AOB \
31   font/devlj4/AOI \
32   font/devlj4/AOR \
33   font/devlj4/CB \
34   font/devlj4/CBI \
35   font/devlj4/CI \
36   font/devlj4/CR \
37   font/devlj4/GB \
38   font/devlj4/GBI \
39   font/devlj4/GI \
40   font/devlj4/GR \
41   font/devlj4/LGB \
42   font/devlj4/LGI \
43   font/devlj4/LGR \
44   font/devlj4/OB \
45   font/devlj4/OBI \
46   font/devlj4/OI \
47   font/devlj4/OR \
48   font/devlj4/TB \
49   font/devlj4/TBI \
50   font/devlj4/TI \
51   font/devlj4/TR \
52   font/devlj4/TNRB \
53   font/devlj4/TNRBI \
54   font/devlj4/TNRI \
55   font/devlj4/TNRR \
56   font/devlj4/UB \
57   font/devlj4/UBI \
58   font/devlj4/UI \
59   font/devlj4/UR \
60   font/devlj4/UCB \
61   font/devlj4/UCBI \
62   font/devlj4/UCI \
63   font/devlj4/UCR \
64   font/devlj4/CLARENDON \
65   font/devlj4/CORONET \
66   font/devlj4/MARIGOLD \
67   font/devlj4/S \
68   font/devlj4/SYMBOL \
69   font/devlj4/WINGDINGS
70
71 devlj4fontdir = $(fontdir)/devlj4
72 dist_devlj4font_DATA = $(DEVLJ4FONTFILES)
73 nodist_devlj4font_DATA = font/devlj4/DESC
74
75 DEVLJ4GENFILES = \
76   font/devlj4/generate/Makefile \
77   font/devlj4/generate/special.map \
78   font/devlj4/generate/symbol.map \
79   font/devlj4/generate/text.map \
80   font/devlj4/generate/wingdings.map \
81   font/devlj4/generate/special.awk
82 devlj4fontgendir = $(devlj4fontdir)/generate
83 dist_devlj4fontgen_DATA = $(DEVLJ4GENFILES)
84
85 EXTRA_DIST += font/devlj4/DESC.in
86
87 MOSTLYCLEANFILES += font/devlj4/DESC
88
89 font/devlj4/DESC: $(devlj4_srcdir)/DESC.in
90         $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
91         && echo "res $(LJ4RES)" >$@ \
92         && echo "unitwidth `expr 7620000 / $(LJ4RES)`" >>$@ \
93         && cat $(devlj4_srcdir)/DESC.in >>$@ \
94         && if test "$(PAGE)" = A4; then \
95              echo "papersize a4" >>$@; \
96            else \
97              echo "papersize letter" >>$@; \
98            fi \
99         && (test -z '$(LJ4PRINT)' \
100             || echo print '$(LJ4PRINT)' >>$@)
101
102 fonts: devlj4_fonts
103 devlj4_fonts: hpftodit font/devlj4/DESC
104         $(MAKE) -f $(devlj4_srcdir)/generate/Makefile \
105           srcdir=$(devlj4_srcdir)/generate \
106           HPFTODIT=$(top_builddir)/hpftodit
107
108
109 ########################################################################
110 # Editor settings
111 ########################################################################
112 #
113 # Local Variables:
114 # mode: makefile-automake
115 # fill-column: 72
116 # End:
117 # vim: set filetype=automake textwidth=72: