blob: 71c56bb751e78cdb81550b51b5166943c9514843 (
plain)
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
|
# 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.
SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
# Where to install the executables.
bindir = @bindir@
# Where to put the system-wide .cvsrc file
libexecdir = $(prefix)/libexec
# Where to put the system-wide .cvsrc file
datadir = $(prefix)/share
# Where to put the manual pages.
mandir = @mandir@
# 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 cvs2vendor.sh \
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 rcs2sccs.sh
# files installed in $(datadir)/cvs/contrib
#
CONTRIB_FILES = README intro.doc cvscheck.man
# things we actually build and install....
#
PROGS = rcs2log
CONTRIB_PROGS = clmerge cln_hist commit_prep cvs2vendor 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 installdirs
for f in $(CONTRIB_FILES) ; do\
$(INSTALL_DATA) $(srcdir)/$$f $(datadir)/cvs/contrib/$$f; \
done
for f in $(CONTRIB_PROGS) ; do\
$(INSTALL_PROGRAM) $$f $(libexecdir)/cvs/contrib/$$f; \
done
for f in $(PROGS) ; do\
$(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
done
.PHONY: install
installdirs:
$(SHELL) $(top_srcdir)/mkinstalldirs $(datadir)/cvs/contrib
$(SHELL) $(top_srcdir)/mkinstalldirs $(libexecdir)/cvs/contrib
.PHONY: installdirs
tags:
.PHONY: tags
TAGS:
.PHONY: TAGS
ls:
@echo $(DISTFILES)
.PHONY: ls
clean:
rm -f *.o core
.PHONY: clean
distclean: clean
rm -f Makefile $(PROGS) $(CONTRIB_PROGS)
.PHONY: distclean
realclean: distclean
.PHONY: realclean
dist-dir:
mkdir ${DISTDIR}
for i in ${DISTFILES}; do \
ln $(srcdir)/$${i} ${DISTDIR}; \
done
.PHONY: dist-dir
subdir = contrib
Makefile: ../config.status Makefile.in
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|