]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/contrib/Makefile.am
This commit was generated by cvs2svn to compensate for changes in r161537,
[FreeBSD/FreeBSD.git] / contrib / cvs / contrib / Makefile.am
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.
7
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)
11 # any later version.
12
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
18 contribdir = $(pkgdatadir)/contrib
19
20 contrib_SCRIPTS = \
21         check_cvs \
22         clmerge \
23         cln_hist \
24         commit_prep \
25         cvs2vendor \
26         cvs_acls \
27         cvscheck \
28         debug_check_log \
29         log \
30         log_accum \
31         mfpipe \
32         pvcs2rcs \
33         rcs-to-cvs \
34         rcs2log \
35         rcslock \
36         sccs2rcs
37
38 contrib_DATA = \
39         README \
40         intro.doc
41
42 contrib_MANS = \
43         cvscheck.man
44
45 bin_LINKS = \
46         rcs2log
47
48 EXTRA_DIST = \
49         .cvsignore \
50         $(contrib_DATA) \
51         $(contrib_MANS) \
52         cvs2vendor.sh \
53         cvscheck.sh \
54         cvshelp.man \
55         debug_check_log.sh \
56         descend.sh \
57         descend.man \
58         dirfns.shar \
59         rcs-to-cvs.sh \
60         rcs2log.sh \
61         rcs2sccs.sh
62
63 CLEANFILES = $(bin_SCRIPTS) $(contrib_SCRIPTS)
64
65 # we'd rather have a link here rather than two copies of a script
66 install-data-local:
67         : FIXME - this path should be determined dynamically from bindir
68         : and contribdir
69         @$(NORMAL_INSTALL)
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)'`; \
82                  else :; fi; fi); \
83         done
84
85 uninstall-local:
86         @$(NORMAL_UNINSTALL)
87         list='$(bin_LINKS)'; for p in $$list; do \
88           rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
89         done
90
91 SUFFIXES = .sh
92
93 .sh:
94         rm -f $@
95         cp $< $@
96         chmod +x $@
97
98 # for backwards compatibility with the old makefiles
99 realclean: maintainer-clean
100 .PHONY: realclean