1151497Sru# Copyright (C) 2004 2151497Sru# Free Software Foundation, Inc. 3151497Sru# Written by James Clark (jjc@jclark.com) 4151497Sru# 5151497Sru# This file is part of groff. 6151497Sru# 7151497Sru# groff is free software; you can redistribute it and/or modify it under 8151497Sru# the terms of the GNU General Public License as published by the Free 9151497Sru# Software Foundation; either version 2, or (at your option) any later 10151497Sru# version. 11151497Sru# 12151497Sru# groff is distributed in the hope that it will be useful, but WITHOUT ANY 13151497Sru# WARRANTY; without even the implied warranty of MERCHANTABILITY or 14151497Sru# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15151497Sru# for more details. 16151497Sru# 17151497Sru# You should have received a copy of the GNU General Public License along 18151497Sru# with groff; see the file COPYING. If not, write to the Free Software 19151497Sru# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 20151497Sru 21151497Srubuilddir=@abs_builddir@ 22151497Srutop_srcdir=@abs_top_srcdir@ 23151497Srutop_builddir=@abs_top_builddir@ 24151497SruSHELL=@SHELL@ 25151497Sru 26151497Srudevdir=$(top_builddir)/font 27151497Srudriverdir=$(top_srcdir)/src/devices/xditview 28151497Srumkinstalldirs=$(SHELL) $(top_srcdir)/mkinstalldirs 29151497Sru 30151497Sruxtotroff=$(builddir)/xtotroff 31151497SruDPIS=75 100 32151497Sru 33151497Sruall: 34151497Sru @echo "Say \`make fonts' to generate fonts for gxditview." 35151497Sru 36151497Srufonts: $(xtotroff) $(driverdir)/DESC.in $(driverdir)/FontMap 37151497Sru fonts=`sed -e 's/[ ].*//' $(driverdir)/FontMap`; \ 38151497Sru for dpi in $(DPIS); do \ 39151497Sru echo Making devX$$dpi; \ 40151497Sru test -d $(devdir)/devX$$dpi || \ 41151497Sru $(mkinstalldirs) $(devdir)/devX$$dpi; \ 42151497Sru rm -f $(devdir)/devX$$dpi/DESC; \ 43151497Sru sed -e "s/res 75/res $$dpi/" $(driverdir)/DESC.in \ 44151497Sru >$(devdir)/devX$$dpi/DESC; \ 45151497Sru (cd $(devdir)/devX$$dpi; \ 46151497Sru rm -f Makefile.sub; \ 47151497Sru echo DEV=X$$dpi >Makefile.sub; \ 48151497Sru echo DEVFILES=DESC $$fonts >>Makefile.sub; \ 49151497Sru $(xtotroff) -r $$dpi -s 10 $(driverdir)/FontMap); \ 50151497Sru echo Making devX$$dpi-12; \ 51151497Sru test -d $(devdir)/devX$$dpi-12 || \ 52151497Sru $(mkinstalldirs) $(devdir)/devX$$dpi-12; \ 53151497Sru rm -f $(devdir)/devX$$dpi-12/DESC; \ 54151497Sru sed -e "s/res 75/res $$dpi/" \ 55151497Sru -e 's/unitwidth 10/unitwidth 12/' $(driverdir)/DESC.in \ 56151497Sru >$(devdir)/devX$$dpi-12/DESC; \ 57151497Sru (cd $(devdir)/devX$$dpi-12; \ 58151497Sru rm -f Makefile.sub; \ 59151497Sru echo DEV=X$$dpi-12 >Makefile.sub; \ 60151497Sru echo DEVFILES=DESC $$fonts >>Makefile.sub; \ 61151497Sru $(xtotroff) -r $$dpi -s 12 $(driverdir)/FontMap); \ 62151497Sru done 63