Add new flag to .cflags to enable hyphenation without looking at
[s-roff.git] / font / devhtml / Makefile.sub
blob474c0f282beddf31f1240e259c83236d16d634ce
1 DEV=html
2 PROTOFONTS=R I B BI CR CI CB CBI
3 FONTS=$(PROTOFONTS) S
4 DEVFILES=$(FONTS) DESC
5 CLEANADD=$(FONTS) DESC
7 RES=240
8 CPI=10
9 LPI=6
11 $(FONTS): R.proto
12         @echo Making $@
13         @-rm -f $@
14         @(charwidth=`expr $(RES) / $(CPI)` ; \
15          sed -e "s/^name [A-Z]*$$/name $@/" \
16              -e "s/^\\([^       ]*\\)   [0-9]+  /\\1    $$charwidth     /" \
17              -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
18              -e "s/^internalname .*$$/internalname $@/" \
19              -e "/^internalname/s/CR/4/" \
20              -e "/^internalname/s/BI/3/" \
21              -e "/^internalname/s/B/2/" \
22              -e "/^internalname/s/I/1/" \
23              -e "/^internalname .*[^ 0-9]/d" \
24              $(srcdir)/R.proto >$@)
26 DESC: DESC.proto
27         @echo Making $@
28         @-rm -f $@
29         @sed -e "s/^res .*$$/res $(RES)/" \
30             -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
31             -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
32             -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
33             $(srcdir)/DESC.proto >$@
34         @echo "image_generator $(GHOSTSCRIPT)" >> $@