/contrib/groff/src/utils/xtotroff/Makefile.in

https://bitbucket.org/freebsd/freebsd-head/ · Autoconf · 62 lines · 38 code · 5 blank · 19 comment · 4 complexity · bfcf6d87890b559c51302103aeac228c MD5 · raw file

  1. # Copyright (C) 2004
  2. # Free Software Foundation, Inc.
  3. # Written by James Clark (jjc@jclark.com)
  4. #
  5. # This file is part of groff.
  6. #
  7. # groff is free software; you can redistribute it and/or modify it under
  8. # the terms of the GNU General Public License as published by the Free
  9. # Software Foundation; either version 2, or (at your option) any later
  10. # version.
  11. #
  12. # groff is distributed in the hope that it will be useful, but WITHOUT ANY
  13. # WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  15. # for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License along
  18. # with groff; see the file COPYING. If not, write to the Free Software
  19. # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
  20. builddir=@abs_builddir@
  21. top_srcdir=@abs_top_srcdir@
  22. top_builddir=@abs_top_builddir@
  23. SHELL=@SHELL@
  24. devdir=$(top_builddir)/font
  25. driverdir=$(top_srcdir)/src/devices/xditview
  26. mkinstalldirs=$(SHELL) $(top_srcdir)/mkinstalldirs
  27. xtotroff=$(builddir)/xtotroff
  28. DPIS=75 100
  29. all:
  30. @echo "Say \`make fonts' to generate fonts for gxditview."
  31. fonts: $(xtotroff) $(driverdir)/DESC.in $(driverdir)/FontMap
  32. fonts=`sed -e 's/[ ].*//' $(driverdir)/FontMap`; \
  33. for dpi in $(DPIS); do \
  34. echo Making devX$$dpi; \
  35. test -d $(devdir)/devX$$dpi || \
  36. $(mkinstalldirs) $(devdir)/devX$$dpi; \
  37. rm -f $(devdir)/devX$$dpi/DESC; \
  38. sed -e "s/res 75/res $$dpi/" $(driverdir)/DESC.in \
  39. >$(devdir)/devX$$dpi/DESC; \
  40. (cd $(devdir)/devX$$dpi; \
  41. rm -f Makefile.sub; \
  42. echo DEV=X$$dpi >Makefile.sub; \
  43. echo DEVFILES=DESC $$fonts >>Makefile.sub; \
  44. $(xtotroff) -r $$dpi -s 10 $(driverdir)/FontMap); \
  45. echo Making devX$$dpi-12; \
  46. test -d $(devdir)/devX$$dpi-12 || \
  47. $(mkinstalldirs) $(devdir)/devX$$dpi-12; \
  48. rm -f $(devdir)/devX$$dpi-12/DESC; \
  49. sed -e "s/res 75/res $$dpi/" \
  50. -e 's/unitwidth 10/unitwidth 12/' $(driverdir)/DESC.in \
  51. >$(devdir)/devX$$dpi-12/DESC; \
  52. (cd $(devdir)/devX$$dpi-12; \
  53. rm -f Makefile.sub; \
  54. echo DEV=X$$dpi-12 >Makefile.sub; \
  55. echo DEVFILES=DESC $$fonts >>Makefile.sub; \
  56. $(xtotroff) -r $$dpi -s 12 $(driverdir)/FontMap); \
  57. done