Home | History | Annotate | Line # | Download | only in devhtml
      1  1.1  christos DEV=html
      2  1.1  christos PROTOFONTS=R I B BI CR CI CB CBI
      3  1.1  christos FONTS=$(PROTOFONTS) S
      4  1.1  christos DEVFILES=$(FONTS) DESC
      5  1.1  christos CLEANADD=$(FONTS) DESC
      6  1.1  christos 
      7  1.1  christos RES=240
      8  1.1  christos CPI=10
      9  1.1  christos LPI=6
     10  1.1  christos 
     11  1.1  christos $(FONTS): R.proto
     12  1.1  christos 	@echo Making $@
     13  1.1  christos 	@-rm -f $@
     14  1.1  christos 	@(charwidth=`expr $(RES) / $(CPI)` ; \
     15  1.1  christos  	 sed -e "s/^name [A-Z]*$$/name $@/" \
     16  1.1  christos 	     -e "s/^\\([^	]*\\)	[0-9]+	/\\1	$$charwidth	/" \
     17  1.1  christos 	     -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
     18  1.1  christos 	     -e "s/^internalname .*$$/internalname $@/" \
     19  1.1  christos 	     -e "/^internalname/s/CR/4/" \
     20  1.1  christos 	     -e "/^internalname/s/BI/3/" \
     21  1.1  christos 	     -e "/^internalname/s/B/2/" \
     22  1.1  christos 	     -e "/^internalname/s/I/1/" \
     23  1.1  christos 	     -e "/^internalname .*[^ 0-9]/d" \
     24  1.1  christos 	     $(srcdir)/R.proto >$@)
     25  1.1  christos 
     26  1.1  christos DESC: DESC.proto
     27  1.1  christos 	@echo Making $@
     28  1.1  christos 	@-rm -f $@
     29  1.1  christos 	@sed -e "s/^res .*$$/res $(RES)/" \
     30  1.1  christos 	    -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
     31  1.1  christos 	    -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
     32  1.1  christos 	    -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
     33  1.1  christos 	    $(srcdir)/DESC.proto >$@
     34  1.1  christos 	@echo "image_generator $(GHOSTSCRIPT)" >> $@
     35