/contrib/groff/contrib/groffer/Makefile.sub

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 60 lines · 46 code · 14 blank · 0 comment · 0 complexity · 59a7ede6524c4869fabe3a71e9553e95 MD5 · raw file

  1. # Makefile.sub for `groffer' (integration into the `groff' source tree)
  2. # File position: <groff-source>/contrib/groffer/Makefile.sub
  3. # Copyright (C) 2001,2002,2005 Free Software Foundation, Inc.
  4. # Written by Werner Lemberg <wl@gnu.org> and Bernd Warken.
  5. # Last update: 15 August 2005
  6. # This file is part of `groffer' which is part of `groff'.
  7. # `groff' is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. # `groff' is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with `groff'; see the files COPYING and LICENSE in the top
  17. # directory of the `groff' source. If not, write to the Free Software
  18. # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
  19. ########################################################################
  20. MAN1=groffer.n
  21. CLEANADD=groffer
  22. # not all make programs have $(RM) predefined.
  23. RM=rm -f
  24. all: groffer
  25. groffer: groffer.sh groffer2.sh $(SH_DEPS_SED_SCRIPT)
  26. $(RM) $@;
  27. sed -f $(SH_DEPS_SED_SCRIPT) \
  28. -e "s|@g@|$(g)|g" \
  29. -e "s|@BINDIR@|$(bindir)|g" \
  30. -e "s|@libdir@|$(libdir)|g" \
  31. -e "s|@VERSION@|$(version)$(revision)|g" \
  32. -e $(SH_SCRIPT_SED_CMD) $(srcdir)/groffer.sh >$@;
  33. chmod +x $@
  34. install_data: groffer
  35. -test -d $(bindir) || $(mkinstalldirs) $(bindir)
  36. -$(RM) $(bindir)/groffer
  37. $(INSTALL_SCRIPT) groffer $(bindir)/groffer
  38. -test -d $(libdir)/groff/groffer || \
  39. $(mkinstalldirs) $(libdir)/groff/groffer
  40. -$(RM) $(libdir)/groff/groffer/groffer2.sh
  41. $(INSTALL_SCRIPT) $(srcdir)/groffer2.sh \
  42. $(libdir)/groff/groffer/groffer2.sh
  43. uninstall_sub:
  44. -$(RM) $(bindir)/groffer
  45. -$(RM) $(libdir)/groff/groffer/groffer2.sh
  46. -rmdir $(libdir)/groff/groffer