1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# Makefile for GNU CVS contributed sources.
# Do not use this makefile directly, but only from `../Makefile'.
# Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# $CVSid: @(#)Makefile.in 1.6 94/10/22 $
SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
# Where to install the executables.
bindir = $(exec_prefix)/bin
# Where to put the system-wide .cvsrc file
libdir = $(prefix)/lib
# Where to put the manual pages.
mandir = $(prefix)/man
# where to find command interpreters
perl_path = @perl_path@
csh_path = @csh_path@
# Use cp if you don't have install.
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
DISTFILES = \
ChangeLog README .cvsignore intro.doc \
Makefile.in clmerge.pl cln_hist.pl commit_prep.pl cvs_acls.pl \
cvscheck.sh cvscheck.man cvshelp.man descend.sh descend.man \
dirfns.shar log.pl log_accum.pl mfpipe.pl rcs-to-cvs.sh rcs2log.sh \
rcslock.pl sccs2rcs.csh
# files installed in $(libdir)/cvs/contrib
#
CONTRIB_FILES = README intro.doc cvscheck.man
# things we actually build and install....
#
PROGS = rcs2log
CONTRIB_PROGS = clmerge cln_hist commit_prep cvs_acls cvscheck log log_accum \
mfpipe rcs-to-cvs rcs2log rcslock sccs2rcs
.SUFFIXES: .pl .sh .csh
.pl:
rm -f $@
sed -e 's,xPERL_PATHx,$(perl_path),' $< > $@-t
mv $@-t $@
chmod +x $@
.csh:
rm -f $@
sed -e 's,xCSH_PATHx,$(csh_path),' $< > $@-t
mv $@-t $@
chmod +x $@
.sh:
rm -f $@
cp $< $@
chmod +x $@
all: Makefile $(PROGS) $(CONTRIB_PROGS)
.PHONY: all
install: all $(libdir)/cvs/contrib
for f in $(CONTRIB_FILES) ; do\
$(INSTALL_DATA) $(srcdir)/$$f $(libdir)/cvs/contrib/$$f; \
done
for f in $(CONTRIB_PROGS) ; do\
$(INSTALL_PROGRAM) $$f $(libdir)/cvs/contrib/$$f; \
done
for f in $(PROGS) ; do\
$(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
done
.PHONY: install
$(libdir)/cvs/contrib:
$(top_srcdir)/mkinstalldirs $(libdir)/cvs/contrib
tags:
.PHONY: tags
TAGS:
.PHONY: TAGS
ls:
@echo $(DISTFILES)
.PHONY: ls
clean:
/bin/rm -f *.o core
.PHONY: clean
distclean: clean
rm -f Makefile pcl-cvs/Makefile $(PROGS) $(CONTRIB_PROGS)
.PHONY: distclean
realclean: distclean
.PHONY: realclean
dist-dir:
mkdir ${DISTDIR}
for i in ${DISTFILES}; do \
ln $(srcdir)/$${i} ${DISTDIR}; \
done
cd pcl-cvs; ${MAKE} dist-dir DISTDIR="../${DISTDIR}/pcl-cvs"
.PHONY: dist-dir
subdir = contrib
Makefile: ../config.status Makefile.in
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|