#
# ~ppr/src/fonts/Makefile
# Copyright 1996, 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 is provided "as is" without express or
# implied warranty.
#
# Last modified 5 November 1996.
#

include ../include/global.mk

all:

install: $(HOMEDIR)/cache/font/IBMCourier \
	$(HOMEDIR)/cache/font/IBMCourier-Bold \
	$(HOMEDIR)/cache/font/IBMCourier-Italic \
	$(HOMEDIR)/cache/font/IBMCourier-BoldItalic \
	$(CONFDIR)/fontsub.conf

# Install the Courier font which IBM donated to the X11 project
$(HOMEDIR)/cache/font/IBMCourier: IBMCourier
	cp IBMCourier $(HOMEDIR)/cache/font/IBMCourier

$(HOMEDIR)/cache/font/IBMCourier-Bold: IBMCourier-Bold
	cp IBMCourier-Bold $(HOMEDIR)/cache/font/IBMCourier-Bold

$(HOMEDIR)/cache/font/IBMCourier-Italic: IBMCourier-Italic
	cp IBMCourier-Italic $(HOMEDIR)/cache/font/IBMCourier-Italic

$(HOMEDIR)/cache/font/IBMCourier-BoldItalic: IBMCourier-BoldItalic
	cp IBMCourier-BoldItalic $(HOMEDIR)/cache/font/IBMCourier-BoldItalic

# The font substitution file
$(CONFDIR)/fontsub.conf: fontsub.conf
	cp fontsub.conf $(CONFDIR)/fontsub.conf

# Remove two styles of editor backup files
clean:
	rm -f *~ *.bak
