/contrib/groff/contrib/gdiffmk/Makefile.sub

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 47 lines · 34 code · 13 blank · 0 comment · 0 complexity · 10cce653fc3afe21ff1a91b32ca221fe MD5 · raw file

  1. # Makefile.sub for `gdiffmk' (integration into the groff source tree)
  2. # File position: <groff-source>/contrib/gdiffmk/Makefile.sub
  3. # Last update: 12 December 2004
  4. # Copyright (C) 2004 Free Software Foundation, Inc.
  5. # Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>>
  6. # This file is part of the gdiffmk utility, 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 WITHOUT
  12. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  13. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  14. # 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=gdiffmk.n
  21. CLEANADD=gdiffmk tests/runtests
  22. all: gdiffmk
  23. gdiffmk: gdiffmk.sh
  24. rm -f $@; \
  25. sed -e "s|@BINDIR@|$(bindir)|g" \
  26. -e "s|@VERSION@|$(version)$(revision)|g" \
  27. -e $(SH_SCRIPT_SED_CMD) $(srcdir)/gdiffmk.sh >$@; \
  28. chmod +x $@
  29. install_data: gdiffmk
  30. -test -d $(bindir) || $(mkinstalldirs) $(bindir)
  31. -rm -f $(bindir)/gdiffmk
  32. $(INSTALL_SCRIPT) gdiffmk $(bindir)/gdiffmk
  33. uninstall_sub:
  34. -rm -f $(bindir)/gdiffmk