/contrib/groff/font/devlatin1/Makefile.sub

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 32 lines · 28 code · 4 blank · 0 comment · 0 complexity · 04087e647b3731e82c9a15b20c8fb957 MD5 · raw file

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