blob: 8e5e158889426e3c04da495dd236d13016ea3cec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $FreeBSD$
FONTS?=R I B BI S L CW
DEVFILES=$(FONTS) DESC
CLEANFILES=$(DEVFILES)
RES=240
CPI=10
LPI=6
$(FONTS): R.proto
@${ECHO} Making ${.TARGET}
@(charwidth=`expr $(RES) / $(CPI)` ; \
sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
-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" \
${.ALLSRC} >$.${.TARGET})
DESC: DESC.proto
@${ECHO} Making ${.TARGET}
@sed -e "s/^res .*$$/res $(RES)/" \
-e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
${.ALLSRC} >${.TARGET}
.if defined(DESC_EXT)
@${DESC_EXT} >>${.TARGET}
.endif
|