/contrib/cvs/contrib/Makefile.am

https://bitbucket.org/freebsd/freebsd-head/ · Makefile · 103 lines · 71 code · 14 blank · 18 comment · 12 complexity · 186ea9b3b55bfd008f14716694e207e7 MD5 · raw file

  1. ## Process this file with automake to produce Makefile.in
  2. # Makefile for GNU CVS contributed sources.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. #
  5. # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
  6. #
  7. # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
  8. # and others.
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. contribdir = $(pkgdatadir)/contrib
  18. contrib_SCRIPTS = \
  19. check_cvs \
  20. clmerge \
  21. cln_hist \
  22. commit_prep \
  23. cvs2vendor \
  24. cvs_acls \
  25. cvscheck \
  26. debug_check_log \
  27. log \
  28. log_accum \
  29. mfpipe \
  30. pvcs2rcs \
  31. rcs-to-cvs \
  32. rcs2log \
  33. rcslock \
  34. sccs2rcs
  35. contrib_DATA = \
  36. README \
  37. intro.doc
  38. contrib_MANS = \
  39. cvscheck.man
  40. bin_LINKS = \
  41. rcs2log
  42. EXTRA_DIST = \
  43. .cvsignore \
  44. $(contrib_DATA) \
  45. $(contrib_MANS) \
  46. cvs2vendor.sh \
  47. cvscheck.sh \
  48. cvshelp.man \
  49. cvs_acls.html \
  50. debug_check_log.sh \
  51. descend.sh \
  52. descend.man \
  53. dirfns.shar \
  54. rcs-to-cvs.sh \
  55. rcs2log.sh \
  56. rcs2sccs.sh
  57. CLEANFILES = $(bin_SCRIPTS) $(contrib_SCRIPTS)
  58. # we'd rather have a link here rather than two copies of a script
  59. install-data-local:
  60. : FIXME - this path should be determined dynamically from bindir
  61. : and contribdir
  62. @$(NORMAL_INSTALL)
  63. $(mkinstalldirs) $(DESTDIR)$(bindir)
  64. @list='$(bin_LINKS)'; for p in $$list; do \
  65. echo "test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  66. echo " && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` ."; \
  67. (test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \
  68. && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` .) \
  69. || (echo "Link creation failed" && if test -f $$p; then \
  70. echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  71. $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  72. else if test -f $(srcdir)/$$p; then \
  73. echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
  74. $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  75. else :; fi; fi); \
  76. done
  77. uninstall-local:
  78. @$(NORMAL_UNINSTALL)
  79. list='$(bin_LINKS)'; for p in $$list; do \
  80. rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
  81. done
  82. SUFFIXES = .sh
  83. .sh:
  84. rm -f $@
  85. cp $< $@
  86. chmod +x $@
  87. # for backwards compatibility with the old makefiles
  88. realclean: maintainer-clean
  89. .PHONY: realclean