ZFONTSPCF = $(ZFONTSBDF:.bdf=.pcf)
FONTDIR = $(DESTDIR)$(PREFIX)/share/fonts
-#X11_FONTDIR = $(FONTDIR)/X11/zork
X11_FONTDIR = $(FONTDIR)/X11
X11_ZORK_FONTDIR = $(X11_FONTDIR)/zork
-
-
MKFONTDIR ?= $(shell which mkfontdir)
XSET ?= $(shell which xset)
@echo " pcf: Build PCF fonts from BDF fonts"
pcf: $(ZFONTSPCF)
-# @echo "CFLAGS is $(CFLAGS)"
-# @echo "DESTDIR is $(DESTDIR)"
- @echo "X11_FONTDIR is $(X11_FONTDIR)"
- @echo "X11_ZORK_FONTDIR is $(X11_ZORK_FONTDIR)"
install_pcf: pcf
@echo "Installing X11 fonts to $(X11_ZORK_FONTDIR)"
uninstall_pcf:
rm -f $(X11_ZORK_FONTDIR)/*pcf
rm -f $(X11_ZORK_FONTDIR)/fonts.dir
-# find $(X11_FONTDIR) -depth -type d -empty -exec rmdir "{}" \;
+ # Remove as much as we added as we can.
+ find $(FONTDIR) -depth -type d -empty -exec rmdir "{}" \;
$(XSET) -fp $(X11_ZORK_FONTDIR)
clean: