summaryrefslogtreecommitdiff
path: root/font/devlj4/devlj4.am
blob: de6e5f798df14df2f716ee09d5c6ed7e7c45f084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (C) 2014
#   Free Software Foundation, Inc.
#
# This file is part of `groff'
#
# `groff' is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# `groff' is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

devlj4_srcdir = $(top_srcdir)/font/devlj4
LJ4RES = 1200
LJ4PRINT = $(PSPRINT)
DEVLJ4FONTFILES = \
  font/devlj4/AB \
  font/devlj4/ABI \
  font/devlj4/AI \
  font/devlj4/AR \
  font/devlj4/ALBB \
  font/devlj4/ALBR \
  font/devlj4/AOB \
  font/devlj4/AOI \
  font/devlj4/AOR \
  font/devlj4/CB \
  font/devlj4/CBI \
  font/devlj4/CI \
  font/devlj4/CR \
  font/devlj4/GB \
  font/devlj4/GBI \
  font/devlj4/GI \
  font/devlj4/GR \
  font/devlj4/LGB \
  font/devlj4/LGI \
  font/devlj4/LGR \
  font/devlj4/OB \
  font/devlj4/OBI \
  font/devlj4/OI \
  font/devlj4/OR \
  font/devlj4/TB \
  font/devlj4/TBI \
  font/devlj4/TI \
  font/devlj4/TR \
  font/devlj4/TNRB \
  font/devlj4/TNRBI \
  font/devlj4/TNRI \
  font/devlj4/TNRR \
  font/devlj4/UB \
  font/devlj4/UBI \
  font/devlj4/UI \
  font/devlj4/UR \
  font/devlj4/UCB \
  font/devlj4/UCBI \
  font/devlj4/UCI \
  font/devlj4/UCR \
  font/devlj4/CLARENDON \
  font/devlj4/CORONET \
  font/devlj4/MARIGOLD \
  font/devlj4/S \
  font/devlj4/SYMBOL \
  font/devlj4/WINGDINGS

devlj4fontdir = $(fontdir)/devlj4
dist_devlj4font_DATA = $(DEVLJ4FONTFILES) 
nodist_devlj4font_DATA = font/devlj4/DESC

DEVLJ4GENFILES = \
  font/devlj4/generate/Makefile \
  font/devlj4/generate/special.map \
  font/devlj4/generate/symbol.map \
  font/devlj4/generate/text.map \
  font/devlj4/generate/wingdings.map \
  font/devlj4/generate/special.awk
devlj4fontgendir = $(devlj4fontdir)/generate
dist_devlj4fontgen_DATA = $(DEVLJ4GENFILES)

EXTRA_DIST += font/devlj4/DESC.in

MOSTLYCLEANFILES += font/devlj4/DESC

font/devlj4/DESC: $(devlj4_srcdir)/DESC.in
	@echo Making $@
	@$(MKDIR_P) `dirname $@`
	@echo "res $(LJ4RES)" >$@
	@echo "unitwidth `expr 7620000 / $(LJ4RES)`" >>$@
	@cat $(devlj4_srcdir)/DESC.in >>$@
	@if test "$(PAGE)" = A4; then \
	   echo "papersize a4" >>$@; \
	else \
	   echo "papersize letter" >>$@; \
	fi
	@test -z '$(LJ4PRINT)' || echo print '$(LJ4PRINT)' >>$@

fonts: devlj4_fonts
devlj4_fonts: hpftodit font/devlj4/DESC
	$(MAKE) -f $(devlj4_srcdir)/generate/Makefile \
	  srcdir=$(devlj4_srcdir)/generate HPFTODIT=$(top_builddir)/hpftodit