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 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
5 # 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6 # Free Software Foundation, Inc.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
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.
18 contribdir = $(pkgdatadir)/contrib
63 CLEANFILES = $(bin_SCRIPTS) $(contrib_SCRIPTS)
65 # we'd rather have a link here rather than two copies of a script
67 : FIXME - this path should be determined dynamically from bindir
70 $(mkinstalldirs) $(DESTDIR)$(bindir)
71 @list='$(bin_LINKS)'; for p in $$list; do \
72 echo "test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
73 echo " && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` ."; \
74 (test ! -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \
75 && cd $(DESTDIR)$(bindir) && $(LN_S) ../share/$(PACKAGE)/contrib/`echo $$p|sed '$(transform)'` .) \
76 || (echo "Link creation failed" && if test -f $$p; then \
77 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
78 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
79 else if test -f $(srcdir)/$$p; then \
80 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
81 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
87 list='$(bin_LINKS)'; for p in $$list; do \
88 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
98 # for backwards compatibility with the old makefiles
99 realclean: maintainer-clean