Home | History | Annotate | Line # | Download | only in devhtml
      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
      6 
      7 RES=240
      8 CPI=10
      9 LPI=6
     10 
     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 >$@)
     25 
     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)" >> $@
     35