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