1fontdir = @fontdir@ 2srcdir = @srcdir@ 3 4BDFTOPCF = bdftopcf 5MKFONTDIR = mkfontdir 6COMPRESS = @compress@ 7 8RM = rm -f 9SHELL = /bin/sh 10 11INSTALL = @INSTALL@ 12 13BDFFILES = \ 14 shnm6x12a.bdf shnm6x12ab.bdf shnm6x12ai.bdf shnm6x12abi.bdf \ 15 shnm6x12r.bdf shnm6x12rb.bdf shnm6x12ri.bdf shnm6x12rbi.bdf \ 16 shnm7x14a.bdf shnm7x14ab.bdf shnm7x14ai.bdf shnm7x14abi.bdf \ 17 shnm7x14r.bdf shnm7x14rb.bdf shnm7x14ri.bdf shnm7x14rbi.bdf \ 18 shnm8x16a.bdf shnm8x16ab.bdf shnm8x16ai.bdf shnm8x16abi.bdf \ 19 shnm8x16r.bdf shnm8x16rb.bdf shnm8x16ri.bdf shnm8x16rbi.bdf \ 20 shnm9x18a.bdf shnm9x18ab.bdf shnm9x18ai.bdf shnm9x18abi.bdf \ 21 shnm9x18r.bdf shnm9x18rb.bdf shnm9x18ri.bdf shnm9x18rbi.bdf \ 22 shnmk12.bdf shnmk12b.bdf shnmk12i.bdf shnmk12bi.bdf \ 23 shnmk12p.bdf shnmk12pb.bdf shnmk12pi.bdf shnmk12pbi.bdf \ 24 shnmk12min.bdf shnmk12minb.bdf shnmk12mini.bdf shnmk12minbi.bdf \ 25 shnmk12maru.bdf shnmk12marub.bdf shnmk12marui.bdf shnmk12marubi.bdf \ 26 shnmk14.bdf shnmk14b.bdf shnmk14i.bdf shnmk14bi.bdf \ 27 shnmk14min.bdf shnmk14minb.bdf shnmk14mini.bdf shnmk14minbi.bdf \ 28 shnmk16.bdf shnmk16b.bdf shnmk16i.bdf shnmk16bi.bdf \ 29 shnmk16min.bdf shnmk16minb.bdf shnmk16mini.bdf shnmk16minbi.bdf 30 31PCFFILES = $(BDFFILES:.bdf=.pcf) 32 33pcf: $(PCFFILES) 34 35all: pcf 36 37%.pcf: bdf/%.bdf 38 bdftopcf $< > $@ 39 40install: install-pcf 41 42install-pcf: pcf 43 @if [ -d ${fontdir} ] ; then \ 44 rm -f ${fontdir}/fonts.alias ; \ 45 else \ 46 $(INSTALL) -d ${fontdir} ; \ 47 fi 48 @for f in $(PCFFILES) ; do \ 49 $(INSTALL) -m 0444 $${f} ${fontdir} ; \ 50 done 51 @if [ "${COMPRESS}" != "no" ] ; then \ 52 echo "Compressing PCF fonts by ${COMPRESS}..." ; \ 53 rm -f ${fontdir}/*.pcf.* ; \ 54 ${COMPRESS} ${fontdir}/*.pcf ; \ 55 fi 56 $(MKFONTDIR) ${fontdir} 57 58install-bdf: 59 @if [ -d ${fontdir} ] ; then \ 60 rm -f ${fontdir}/fonts.alias ; \ 61 else \ 62 $(INSTALL) -d ${fontdir} ; \ 63 fi 64 @echo "Installing BDF fonts..." 65 @for f in ${srcdir}/bdf/*.bdf; do \ 66 $(INSTALL) -m 0444 $${f} ${fontdir} ; \ 67 done 68 $(MKFONTDIR) ${fontdir} 69 70install-alias: 71 @if [ -d ${fontdir} ] ; then \ 72 rm -f ${fontdir}/fonts.alias ; \ 73 else \ 74 $(INSTALL) -d ${fontdir} ; \ 75 fi 76 cp -f fonts.alias ${fontdir}/fonts.alias 77 78clean: 79 $(RM) -f *.pcf 80 81distclean: clean 82 $(RM) config.* Makefile 83 84# Automatic makefile rebuilding 85Makefile: $(srcdir)/Makefile.in config.status 86 ./config.status 87 88$(srcdir)/configure: $(srcdir)/configure.in 89 cd $(srcdir) && autoreconf 90 91./config.status: $(srcdir)/configure 92 cd . && ./config.status --recheck 93