/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

  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. RES=240
  7. CPI=10
  8. LPI=6
  9. $(FONTS): R.proto
  10. @echo Making $@
  11. @-rm -f $@
  12. @(charwidth=`expr $(RES) / $(CPI)` ; \
  13. sed -e "s/^name [A-Z]*$$/name $@/" \
  14. -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
  15. -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
  16. -e "s/^internalname .*$$/internalname $@/" \
  17. -e "/^internalname/s/CR/4/" \
  18. -e "/^internalname/s/BI/3/" \
  19. -e "/^internalname/s/B/2/" \
  20. -e "/^internalname/s/I/1/" \
  21. -e "/^internalname .*[^ 0-9]/d" \
  22. $(srcdir)/R.proto >$@)
  23. DESC: DESC.proto
  24. @echo Making $@
  25. @-rm -f $@
  26. @sed -e "s/^res .*$$/res $(RES)/" \
  27. -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
  28. -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
  29. -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
  30. $(srcdir)/DESC.proto >$@
  31. @echo "image_generator $(GHOSTSCRIPT)" >> $@