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.
20 contribdir = $(pkgdatadir)/contrib
66 CLEANFILES = $(bin_SCRIPTS) $(contrib_SCRIPTS)
68 # we'd rather have a link here rather than two copies of a script
70 : FIXME - this path should be determined dynamically from bindir
73 $(mkinstalldirs) $(DESTDIR)$(bindir)
74 @list='$(bin_LINKS)'; for p in $$list; do \
75 echo "test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
76 echo " && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` ."; \
77 (test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \
78 && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` .) \
79 || (echo "Link creation failed" && if test -f $$p; then \
80 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
81 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
82 else if test -f $(srcdir)/$$p; then \
83 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
84 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
90 list='$(bin_LINKS)'; for p in $$list; do \
91 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
101 # for backwards compatibility with the old makefiles
102 realclean: maintainer-clean