# Generated automatically from Makefile.in by configure.
# AFAIK, this Makefile was originally written by Nathaniel Borenstein
# while working at Bellcore.
# it has been hacked by Keith Moore to use GNU configure
# 
# the following are set by GNU configure according to what kind of font 
# support we have in this version of the X window system
# (but they can be overridden)
#
FONTSUFFIX=pcf
FONTMAKER=bdftopcf
DIRBUILDER=mkfontdir
prefix=/usr/local
FONT_INSTALL_DIR=${prefix}/share
SHELL=/bin/sh
RM=rm -f
#
# here is what I think the settings for FONT* and DIRBUILDER should be:
# (but I could be wrong about when X switched from snf to pcf)
#			
#			FONTSUFFIX	FONTMAKER	DIRBUILDER
# X11R3 or earlier	snf		bdftosnf	mkfontdir
# X11R4 or later	pcf		bdftopcf	mkfontdir
# Old OpenWindows	fb		convertfont	bldfamily

FONTS=heb6x13.${FONTSUFFIX} heb8x13.${FONTSUFFIX} heb8x13B.${FONTSUFFIX}

all: ${FONTS}

heb6x13.${FONTSUFFIX}: heb6x13.bdf
	@case "${FONTMAKER}" in \
		*convertfont) echo convertfont -o heb6x13 heb6x13.bdf ;; \
		*) echo "${FONTMAKER}" heb6x13.bdf '>'heb6x13.${FONTSUFFIX};;\
	esac | ${SHELL} -x

heb8x13.${FONTSUFFIX}: heb8x13.bdf
	@case "${FONTMAKER}" in \
		*convertfont) echo convertfont -o heb8x13 heb8x13.bdf ;; \
		*) echo "${FONTMAKER}" heb8x13.bdf '>'heb8x13.${FONTSUFFIX};;\
	esac | ${SHELL} -x

heb8x13B.${FONTSUFFIX}: heb8x13B.bdf
	@case "${FONTMAKER}" in \
		*convertfont) echo convertfont -o heb8x13B heb8x13B.bdf ;;\
		*) echo "${FONTMAKER}" heb8x13B.bdf '>'heb8x13B.${FONTSUFFIX};;\
	esac | ${SHELL} -x

clean:
	${RM} *.pcf *.snf *.fb fonts.dir 

distclean: clean
	${RM} shownonascii mailto-hebrew

install: heb6x13.${FONTSUFFIX} heb8x13.${FONTSUFFIX} heb8x13B.${FONTSUFFIX}
	@test -d ${FONT_INSTALL_DIR} || ( echo mkdir ${FONT_INSTALL_DIR} | ${SHELL} -x )
	@for x in ${FONTS} ; do \
		echo ${RM} ${FONT_INSTALL_DIR}/$$x; \
		echo cp $$x ${FONT_INSTALL_DIR}/$$x ; \
		echo chmod 644 ${FONT_INSTALL_DIR}/$$x ; \
	done | ${SHELL} -x
	(cd ${FONT_INSTALL_DIR} ; ${DIRBUILDER})
