2000-12-05 19:15:36 +00:00
|
|
|
# $FreeBSD$
|
1996-09-08 01:27:58 +00:00
|
|
|
|
2001-04-17 12:37:18 +00:00
|
|
|
FONTS?=R I B BI S L CW
|
|
|
|
DEVFILES=$(FONTS) DESC
|
|
|
|
CLEANFILES=$(DEVFILES)
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
RES=240
|
|
|
|
CPI=10
|
|
|
|
LPI=6
|
|
|
|
|
|
|
|
$(FONTS): R.proto
|
2001-04-17 12:37:18 +00:00
|
|
|
@${ECHO} Making ${.TARGET}
|
2000-12-05 19:15:36 +00:00
|
|
|
@(charwidth=`expr $(RES) / $(CPI)` ; \
|
2001-04-17 12:37:18 +00:00
|
|
|
sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
|
1996-09-08 01:27:58 +00:00
|
|
|
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
|
|
|
|
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
|
|
|
|
-e "s/^internalname .*$$/internalname $@/" \
|
|
|
|
-e "/^internalname/s/BI/3/" \
|
|
|
|
-e "/^internalname/s/B/2/" \
|
|
|
|
-e "/^internalname/s/I/1/" \
|
|
|
|
-e "/^internalname .*[^ 0-9]/d" \
|
2001-04-17 12:37:18 +00:00
|
|
|
${.ALLSRC} >$.${.TARGET})
|
1996-09-08 01:27:58 +00:00
|
|
|
|
|
|
|
DESC: DESC.proto
|
2001-04-17 12:37:18 +00:00
|
|
|
@${ECHO} Making ${.TARGET}
|
1996-09-08 01:27:58 +00:00
|
|
|
@sed -e "s/^res .*$$/res $(RES)/" \
|
2000-12-05 19:15:36 +00:00
|
|
|
-e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
|
|
|
|
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
|
1996-09-08 01:27:58 +00:00
|
|
|
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
|
2001-04-17 12:37:18 +00:00
|
|
|
${.ALLSRC} >${.TARGET}
|