Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > 38691a582c20856bfcadb6c819a626e6 > files > 1

fonts-KOI8-R-1.0-2ark.src.rpm

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 100dpi

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;