#
# ~src/ppr/ppd/ghostscript
# Copyright 1995, 1996, 1997, Trinity College Computing Center.
# Written by David Chappell.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software and documentation are provided "as is" without
# express or implied warranty.
#
# Last modified 20 March 1997.
#

include ../../include/global.mk

#========================================================================
# Choose the list of fonts which should be included in Ghostscript
# PPD files.  Some common settings are given.  More details can be found 
# in the comments at the start of the file "ghostscript.master".
#========================================================================

# No fonts except IBM Courier
#FONTS=-DFONTS_IBMCOURIER

# IBM Courier and 14 fonts from Adobe Acrobat reader
FONTS=-DFONTS_IBMCOURIER -DFONTS_TO13 -DFONTS_DINGBATS

# IBM Courier and the 35 fonts typically found in PostScript printers
#FONTS=-DFONTS_IBMCOURIER -DFONTS_TO35

#========================================================================

all: hpiiigs.ppd hpdj5gs.ppd dm24gs.ppd hpdj550c.ppd

hpiiigs.ppd: ghostscript.master Makefile
	$(CPP) -DPRINTER_HPIII $(FONTS) ghostscript.master >hpiiigs.ppd

hpdj5gs.ppd: ghostscript.master Makefile
	$(CPP) -DPRINTER_HPDJ500 $(FONTS) ghostscript.master >hpdj5gs.ppd

dm24gs.ppd: ghostscript.master Makefile
	$(CPP) -DPRINTER_DM24 $(FONTS) ghostscript.master >dm24gs.ppd

hpdj550c.ppd: ghostscript.master Makefile
	$(CPP) -DPRINTER_HPDJ550C $(FONTS) ghostscript.master >hpdj550c.ppd

install: all
	cp hpiiigs.ppd $(HOMEDIR)/PPDFiles/'HP LaserJet III Ghostscript'
	cp hpdj5gs.ppd $(HOMEDIR)/PPDFiles/'HP DeskJet 500 Ghostscript'
	cp dm24gs.ppd $(HOMEDIR)/PPDFiles/'Dot Matrix 24 pin Ghostscript'
	cp hpdj550c.ppd $(HOMEDIR)/PPDFiles/'HP DeskJet 550C Ghostscript'

clean:
	rm -f *~ *.ppd

# end of file
