blob: 22776e1309187301ac305c48c97956a04abd9d6d (
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
|
# Copyright (C) 2004
# Free Software Foundation, Inc.
# Written by James Clark (jjc@jclark.com)
#
# 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/>.
builddir=@abs_builddir@
top_srcdir=@abs_top_srcdir@
top_builddir=@abs_top_builddir@
SHELL=@SHELL@
devdir=$(top_builddir)/font
driverdir=$(top_srcdir)/src/devices/xditview
mkinstalldirs=$(SHELL) $(top_srcdir)/mkinstalldirs
xtotroff=$(builddir)/xtotroff
DPIS=75 100
all:
@echo "Say \`make fonts' to generate fonts for gxditview."
fonts: $(xtotroff) $(driverdir)/DESC.in $(driverdir)/FontMap
fonts=`sed -e 's/[ ].*//' $(driverdir)/FontMap`; \
for dpi in $(DPIS); do \
echo Making devX$$dpi; \
test -d $(devdir)/devX$$dpi || \
$(mkinstalldirs) $(devdir)/devX$$dpi; \
rm -f $(devdir)/devX$$dpi/DESC; \
sed -e "s/res 75/res $$dpi/" $(driverdir)/DESC.in \
>$(devdir)/devX$$dpi/DESC; \
(cd $(devdir)/devX$$dpi; \
rm -f Makefile.sub; \
echo DEV=X$$dpi >Makefile.sub; \
echo DEVFILES=DESC $$fonts >>Makefile.sub; \
$(xtotroff) -r $$dpi -s 10 $(driverdir)/FontMap); \
echo Making devX$$dpi-12; \
test -d $(devdir)/devX$$dpi-12 || \
$(mkinstalldirs) $(devdir)/devX$$dpi-12; \
rm -f $(devdir)/devX$$dpi-12/DESC; \
sed -e "s/res 75/res $$dpi/" \
-e 's/unitwidth 10/unitwidth 12/' $(driverdir)/DESC.in \
>$(devdir)/devX$$dpi-12/DESC; \
(cd $(devdir)/devX$$dpi-12; \
rm -f Makefile.sub; \
echo DEV=X$$dpi-12 >Makefile.sub; \
echo DEVFILES=DESC $$fonts >>Makefile.sub; \
$(xtotroff) -r $$dpi -s 12 $(driverdir)/FontMap); \
done
|