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