169632Sru# $FreeBSD$ 218140Spst 375592SruFONTS?=R I B BI S L CW 475592SruDEVFILES=$(FONTS) DESC 575592SruCLEANFILES=$(DEVFILES) 618140Spst 718140SpstRES=240 818140SpstCPI=10 918140SpstLPI=6 1018140Spst 1118140Spst$(FONTS): R.proto 1275592Sru @${ECHO} Making ${.TARGET} 1369632Sru @(charwidth=`expr $(RES) / $(CPI)` ; \ 1475592Sru sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \ 1518140Spst -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \ 1618140Spst -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \ 1718140Spst -e "s/^internalname .*$$/internalname $@/" \ 1818140Spst -e "/^internalname/s/BI/3/" \ 1918140Spst -e "/^internalname/s/B/2/" \ 2018140Spst -e "/^internalname/s/I/1/" \ 2118140Spst -e "/^internalname .*[^ 0-9]/d" \ 2275592Sru ${.ALLSRC} >$.${.TARGET}) 2318140Spst 2418140SpstDESC: DESC.proto 2575592Sru @${ECHO} Making ${.TARGET} 2618140Spst @sed -e "s/^res .*$$/res $(RES)/" \ 2769632Sru -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \ 2869632Sru -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \ 2918140Spst -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \ 3075592Sru ${.ALLSRC} >${.TARGET} 31151504Sru.if defined(DESC_EXT) 32151504Sru @${DESC_EXT} >>${.TARGET} 33151504Sru.endif 34