PageRenderTime 40ms CodeModel.GetById 33ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/groff/font/devhtml/Makefile.sub

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 34 lines | 31 code | 3 blank | 0 comment | 0 complexity | af256af6334e2940950a1f77d81d5bde MD5 | raw file
 1DEV=html
 2PROTOFONTS=R I B BI CR CI CB CBI
 3FONTS=$(PROTOFONTS) S
 4DEVFILES=$(FONTS) DESC
 5CLEANADD=$(FONTS) DESC
 6
 7RES=240
 8CPI=10
 9LPI=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
26DESC: 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)" >> $@