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 10# This program is free software; you can redistribute it and/or modify 11# it under the terms of the GNU General Public License as published by 12# the Free Software Foundation; either version 2, or (at your option) 13# any later version. 14 15# This program is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU General Public License for more details. 19 20SUBDIRS = pam 21 22contribdir = $(pkgdatadir)/contrib 23 24contrib_SCRIPTS = \ 25 clmerge \ 26 cln_hist \ 27 commit_prep \ 28 cvs2vendor \ 29 cvs_acls \ 30 debug_check_log \ 31 log \ 32 log_accum \ 33 mfpipe \ 34 newcvsroot \ 35 pvcs2rcs \ 36 rcs-to-cvs \ 37 rcs2log \ 38 rcslock \ 39 sandbox_status \ 40 sccs2rcs \ 41 validate_repo 42 43contrib_DATA = \ 44 README \ 45 intro.doc \ 46 rcs-5.7-commitid.patch 47 48contrib_MANS = \ 49 rcs2log.1 \ 50 sandbox_status.man 51 52bin_LINKS = \ 53 rcs2log 54 55EXTRA_DIST = \ 56 .cvsignore \ 57 $(contrib_DATA) \ 58 $(contrib_MANS) \ 59 cvs2vendor.sh \ 60 sandbox_status.sh \ 61 cvshelp.man \ 62 cvs_acls.html \ 63 debug_check_log.sh \ 64 descend.sh \ 65 descend.man \ 66 dirfns.shar \ 67 newcvsroot.sh \ 68 rcs-5.7-commitid.patch \ 69 rcs-to-cvs.sh \ 70 rcs2log.sh \ 71 rcs2sccs.sh 72 73CLEANFILES = $(bin_LINKS) $(contrib_SCRIPTS) 74 75# we'd rather have a link here rather than two copies of a script 76install-data-local: 77 : FIXME - this path should be determined dynamically from bindir 78 : and contribdir 79 @$(NORMAL_INSTALL) 80 $(mkinstalldirs) $(DESTDIR)$(bindir) 81 @list='$(bin_LINKS)'; for p in $$list; do \ 82 echo "test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 83 echo " && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` ."; \ 84 (test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \ 85 && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` .) \ 86 || (echo "Link creation failed" && if test -f $$p; then \ 87 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 88 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 89 else if test -f $(srcdir)/$$p; then \ 90 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 91 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 92 else :; fi; fi); \ 93 done 94 95uninstall-local: 96 @$(NORMAL_UNINSTALL) 97 list='$(bin_LINKS)'; for p in $$list; do \ 98 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 99 done 100 101SUFFIXES = .sh 102 103.sh: 104 rm -f $@ 105 cp $< $@ 106 chmod +x $@ 107 108# for backwards compatibility with the old makefiles 109realclean: maintainer-clean 110.PHONY: realclean 111