FONTDIR=$(PREFIX)/usr/X11R6/lib/X11/fonts # # Select whether or not you want to compress the fonts and which compression # utility to use for that COMPFONTS=set COMPUTIL=gzip COMPFLAGS=-9f FONTC=bdftopcf FONTCFLAGS= MKFONTDIR=mkfontdir MKFONTDIRFLAGS= FONTS=misc 75dpi all: $(addsuffix .done, $(FONTS)) %.done: % cd $< ;\ for i in *.bdf ; do\ $(FONTC) $(FONTCFLAGS) $$i > `basename $$i .bdf`.pcf;\ if [ $(COMPFONTS) ];then\ $(COMPUTIL) $(COMPFLAGS) `basename $$i .bdf`.pcf;\ fi;\ done;\ $(MKFONTDIR) $(MKFONTDIRFLAGS); install: installfonts installfonts: for i in $(FONTS) ;do\ cd $$i;\ if [ -f fonts.dir ] ; then\ install -d $(FONTDIR)/$$i;\ install -m 444 *.pcf* $(FONTDIR)/$$i;\ install -m 644 fonts.dir $(FONTDIR)/$$i;\ install -m 444 fonts.alias $(FONTDIR)/$$i;\ fi;\ cd ..;\ done; clean: for i in $(FONTS) ;do\ cd $$i;\ rm -f *.pcf* fonts.dir;\ cd ..;\ done;