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'.
5 # Copyright (C) 1986-2005 The Free Software Foundation, Inc.
7 # Portions Copyright (C) 1998-2005 Derek Price, Ximbiot <http://ximbiot.com>,
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)
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.
22 contribdir = $(pkgdatadir)/contrib
46 rcs-5.7-commitid.patch
68 rcs-5.7-commitid.patch \
73 CLEANFILES = $(bin_LINKS) $(contrib_SCRIPTS)
75 # we'd rather have a link here rather than two copies of a script
77 : FIXME - this path should be determined dynamically from bindir
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)'`; \
97 list='$(bin_LINKS)'; for p in $$list; do \
98 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
108 # for backwards compatibility with the old makefiles
109 realclean: maintainer-clean