]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/Makefile.in
This commit was generated by cvs2svn to compensate for changes in r44743,
[FreeBSD/FreeBSD.git] / contrib / cvs / Makefile.in
1 # Master Makefile for the GNU Concurrent Versions System.
2 # Copyright (C) 1986, 1988-1992, 1994 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 SHELL = /bin/sh
15
16 #### Start of system configuration section. ####
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21
22 # If you use gcc, you should either run the fixincludes script that
23 # comes with it or else use gcc with the -traditional option.  Otherwise
24 # ioctl calls will be compiled incorrectly on some systems.
25 CC = @CC@
26 AR = ar
27
28 @SET_MAKE@
29
30 # Set RANLIB = echo if your system doesn't have or need ranlib.
31 RANLIB = @RANLIB@
32 # Set YACC = bison or yacc, depending on which you have on your system
33 YACC = @YACC@
34 # Use cp if you don't have install.
35 INSTALL = @INSTALL@
36 INSTALL_DATA = @INSTALL_DATA@
37 INSTALL_PROGRAM = @INSTALL_PROGRAM@
38
39 DEFS = @DEFS@
40 LIBS = @LIBS@
41
42 INCLUDES = -I. -I../lib @includeopt@
43 CFLAGS = @CFLAGS@
44 LDFLAGS = @LDFLAGS@
45
46 MAKEINFO = makeinfo
47 TEXI2DVI = texi2dvi
48
49 prefix = @prefix@
50 exec_prefix = @exec_prefix@
51
52 # Where to install the executables.
53 bindir = $(exec_prefix)/bin
54
55 # Where to put the system-wide .cvsrc file
56 libdir = $(prefix)/lib
57
58 # Where to put the Info files
59 infodir = $(prefix)/info
60
61 # Where to put the manual pages.
62 mandir = $(prefix)/man
63
64 #### End of system configuration section. ####
65
66 FLAGS_TO_PASS = \
67         AR='$(AR)' \
68         CC='$(CC)' \
69         CFLAGS='$(CFLAGS)' \
70         LDFLAGS='$(LDFLAGS)' \
71         LIBPROGS='$(LIBPROGS)' \
72         LIBS='$(LIBS)' \
73         MAKE='$(MAKE)' \
74         MAKEINFO='$(MAKEINFO)' \
75         RANLIB='$(RANLIB)' \
76         TEXI2DVI='$(TEXI2DVI)' \
77         YACC='$(YACC)' \
78         bindir='$(bindir)' \
79         infodir='$(infodir)' \
80         libdir='$(libdir)' \
81         mandir='$(mandir)' \
82         prefix='$(prefix)' \
83         exec_prefix='$(exec_prefix)'
84
85 DISTFILES = \
86         COPYING COPYING.LIB INSTALL README TODO PROJECTS \
87         BUGS MINOR-BUGS FAQ HACKING DEVEL-CVS TESTS \
88         README.VMS build.com \
89         ChangeLog NEWS ChangeLog.zoo \
90         configure configure.in stamp-h.in config.h.in Makefile.in acconfig.h \
91         cvs-format.el mkinstalldirs install-sh \
92         cvsnt.mak cvsnt.dsp \
93         .cvsignore cvs.spec
94
95 ### Subdirectories to run make in for the primary targets.
96 # Unix source subdirs, where we'll want to run lint and etags:
97 USOURCE_SUBDIRS = lib zlib diff src
98 # All other subdirs:
99 SUBDIRS = ${USOURCE_SUBDIRS} man doc contrib tools \
100         windows-NT os2 emx macintosh vms
101 # Only make TAGS/tags files in these directories.
102 TSUBDIRS= src lib
103
104 # Set default target.
105 all:
106
107 .PHONY: all install uninstall installdirs
108 all install uninstall installdirs: config.h Makefile all-local
109         @for subdir in $(SUBDIRS); do \
110           echo "making $@ in $$subdir"; \
111           ( cd $$subdir && $(MAKE) $(FLAGS_TO_PASS) $@ ) || exit 1; \
112         done
113
114 installdirs: installdirs-local
115
116 install: all install-local install-info
117
118 .PHONY: all-local
119 all-local:
120
121 .PHONY: info dvi clean-info install-info
122 info dvi clean-info install-info:
123         cd doc && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1
124
125 .PHONY: install-local
126 install-local: all-local
127         @: nothing to do locally
128
129 .PHONY: installdirs-local
130 installdirs-local: all-local
131         @: nothing to do locally
132
133 .PHONY: tags
134 tags:
135         @for dir in $(TSUBDIRS); do echo making $@ in $$dir; cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
136         @echo making $@ in .
137         @ctags `for i in \`$(MAKE) SUBDIRS="$(TSUBDIRS)" ls\` ; do echo $(srcdir)/$$i ; done`
138
139 .PHONY: TAGS
140 TAGS:
141         @for dir in $(TSUBDIRS); do echo making $@ in $$dir; cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
142         @echo making $@ in .
143         @etags `for i in \`$(MAKE) SUBDIRS="$(TSUBDIRS)" ls | grep -v 'make\[[0-9]\]'\` ; do echo $(srcdir)/$$i ; done`
144
145 .PHONY: ls
146 ls:
147         @echo $(DISTFILES)
148         @for dir in $(SUBDIRS); do \
149                 for i in `cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ | grep -v 'make\[[0-9]\]'` ; do \
150                         echo $$dir/$$i ; \
151                 done ; \
152         done
153
154 .PHONY: clean
155 clean: clean-local
156         @for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
157
158 .PHONY: distclean
159 distclean: distclean-local
160         @for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
161         rm -f config.status
162
163 .PHONY: realclean
164 realclean: realclean-local
165         @for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
166         rm -f config.status
167
168 .PHONY: mostlyclean-local
169 mostlyclean-local:
170         rm -f *~
171
172 .PHONY: clean-local
173 clean-local: mostlyclean-local
174
175 .PHONY: distclean-local
176 distclean-local: clean-local
177         rm -f Makefile config.cache config.h config.log stamp-h
178         rm -f tags TAGS
179
180 .PHONY: realclean-local
181 realclean-local: distclean-local
182
183 .PHONY: saber
184 saber:
185         @for dir in $(SUBDIRS); do cd $$dir && $(MAKE) $(FLAGS_TO_PASS) $@ || exit 1; cd ..; done
186
187 .PHONY: check
188 check:
189         cd lib ; $(MAKE) $(FLAGS_TO_PASS)
190         cd zlib ; $(MAKE) $(FLAGS_TO_PASS)
191         cd diff ; $(MAKE) $(FLAGS_TO_PASS)
192         cd src ; $(MAKE) $(FLAGS_TO_PASS) check
193
194 .PHONY: remotecheck
195 remotecheck:
196         cd lib ; $(MAKE) $(FLAGS_TO_PASS)
197         cd zlib ; $(MAKE) $(FLAGS_TO_PASS)
198         cd diff ; $(MAKE) $(FLAGS_TO_PASS)
199         cd src ; $(MAKE) $(FLAGS_TO_PASS) remotecheck
200
201 .PHONY: installcheck
202 installcheck:
203         cd lib ; $(MAKE) $(FLAGS_TO_PASS)
204         cd zlib ; $(MAKE) $(FLAGS_TO_PASS)
205         cd diff ; $(MAKE) $(FLAGS_TO_PASS)
206         cd src ; $(MAKE) $(FLAGS_TO_PASS) installcheck
207
208 .PHONY: lint
209 lint:
210         @for dir in $(USOURCE_SUBDIRS); do cd $$dir && $(MAKE) $(FLAGS_TO_PASS) xlint || exit 1; cd ..; done
211
212 .PHONY: dist
213 GZIP=gzip --best
214 GZIP_EXT=.gz
215 TAR_VERBOSE=
216 dist: spec
217         rm -rf `cat .fname`
218         ${MAKE} dist-dir DISTDIR="`cat .fname`"
219         for dir in ${SUBDIRS}; do \
220           ( DISTDIR="../`cat .fname`/$${dir}"; \
221             cd $${dir} && \
222             ${MAKE} dist-dir DISTDIR="$${DISTDIR}" \
223           ); \
224         done
225         tar chf${TAR_VERBOSE} - `cat .fname` | ${GZIP} > "`cat .fname`.tar${GZIP_EXT}"
226         rm -rf `cat .fname` .fname .version
227
228 .PHONY: dist-dir
229 dist-dir:
230         mkdir ${DISTDIR}
231         for i in ${DISTFILES}; do \
232           ln $(srcdir)/$${i} ${DISTDIR}; \
233         done
234
235 .PHONY: spec
236 spec:
237         rm -f .version .fname
238         sed < $(srcdir)/src/version.c \
239             -e '/version_string/!d' \
240             -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
241             -e q > .version
242         echo > .fname cvs-`cat .version`
243         rm -f `cat .fname`.spec
244         sed < $(top_srcdir)/cvs.spec \
245             -e 's/@VERSION@/'`cat .version`'/g' \
246             > `cat .fname`.spec
247
248
249 # For the justification of the following Makefile rules, see node
250 # `Automatic Remaking' in GNU Autoconf documentation.
251 Makefile: Makefile.in config.status
252         CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
253
254 # Use @CFLAGS@ not $(CFLAGS) because it would be confusing for "make CFLAGS="
255 # to sometimes (i.e., if configure is modified) change the configured CFLAGS,
256 # and sometimes not.
257 config.status: configure
258         CFLAGS="@CFLAGS@" ./config.status --recheck
259
260 # The rules to run autoconf and autoheader are commented out.  This is because
261 # when the user unpacks a tarfile, configure.in might end up newer than 
262 # configure, but the user might not have (and does not need to have) autoconf
263 # installed.
264 #configure: configure.in #aclocal.m4
265 #       cd $(srcdir); autoconf
266
267 config.h: stamp-h
268
269 # This used to do a ./config.status --recheck, to update config.status with
270 # any new #defines from config.h.in.  The problem was that the rule itself
271 # depends on config.status, so that the --recheck would get run several
272 # times, which is bad if the user was trying to specify CFLAGS manually.
273 # It was a big pain in the neck.
274 stamp-h: config.h.in config.status
275         CONFIG_FILES=$@ CONFIG_HEADERS=config.h ./config.status
276
277 #config.h.in: stamp-h.in
278 #stamp-h.in: configure.in #aclocal.m4 acconfig.h
279 #       cd $(srcdir); autoheader
280 #       date > $(srcdir)/stamp-h.in
281
282 # Tell versions [3.59,3.63) of GNU make not to export all variables.
283 # Otherwise a system limit (for SysV at least) may be exceeded.
284 .NOEXPORT: