Makefile.tty revision 69632
169632Sru# $FreeBSD: head/gnu/usr.bin/groff/font/Makefile.tty 69632 2000-12-05 19:15:36Z ru $ 218140Spst 318140Spst.MAIN: all 418140Spst 518140SpstRES=240 618140SpstCPI=10 718140SpstLPI=6 818140SpstFONTS=R I B BI S L 918140Spst 1018140SpstDEVFILES=$(FONTS) DESC 1118140SpstCLEANFILES=$(DEVFILES) 1218140Spst 1318140Spst$(FONTS): R.proto 1418140Spst @${ECHO} Making $@ 1569632Sru @(charwidth=`expr $(RES) / $(CPI)` ; \ 1618140Spst sed -e "s/^name [A-Z]*$$/name $@/" \ 1718140Spst -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \ 1818140Spst -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \ 1918140Spst -e "s/^internalname .*$$/internalname $@/" \ 2018140Spst -e "/^internalname/s/BI/3/" \ 2118140Spst -e "/^internalname/s/B/2/" \ 2218140Spst -e "/^internalname/s/I/1/" \ 2318140Spst -e "/^internalname .*[^ 0-9]/d" \ 2418189Sphk ${DIST_DIR}/R.proto >$@) 2518140Spst 2618140SpstDESC: DESC.proto 2718140Spst @${ECHO} Making $@ 2818140Spst @sed -e "s/^res .*$$/res $(RES)/" \ 2969632Sru -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \ 3069632Sru -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \ 3118140Spst -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \ 3218189Sphk ${DIST_DIR}/DESC.proto >$@ 3318140Spst 3418140Spstbeforeinstall:: ${DEVFILES} 35