1## Process this file with automake to produce Makefile.in
2# Master Makefile for the GNU Concurrent Versions System.
3# Copyright (C) 1986, 1988-1992, 1994, 2000 Free Software Foundation, Inc.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2, or (at your option)
8# any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14
15AUTOMAKE_OPTIONS = 1.4a dist-bzip2
16
17## Subdirectories to run make in for the primary targets.
18# Unix source subdirs, where we'll want to run lint and etags:
19# This is a legacy variable from b4 Automake
20USOURCE_SUBDIRS = lib zlib diff src
21# All other subdirs:
22SUBDIRS = $(USOURCE_SUBDIRS) man doc contrib tools \
23	windows-NT os2 emx vms
24
25EXTRA_DIST = \
26	.cvsignore \
27	BUGS \
28	ChangeLog.zoo \
29	DEVEL-CVS \
30	FAQ \
31	HACKING \
32	MINOR-BUGS \
33	PROJECTS \
34	README.VMS \
35	TESTS \
36	build.com \
37	cvs-format.el \
38	cvs.spec \
39	cvs.spec.in \
40	cvsnt.dsp \
41	cvsnt.dsw \
42	cvsnt.mak
43
44.PHONY: remotecheck
45remotecheck: all
46	cd src && $(MAKE) $(AM_MAKEFLAGS) "$@"
47
48.PHONY: doc
49doc:
50	cd doc && $(MAKE) $(AM_MAKEFLAGS) "$@"
51
52## MAINTAINER Targets
53
54## cvs.spec  ##
55# - cvs.spec needs to be updated only once, since it depends on
56#   configure.in, not on the results of a 'configure' run.
57# - It is guaranteed (with GNU Make) that when the version in configure.in
58#   is changed, acversion.m4 is built only after the new version number is
59#   propagated to the Makefile.  (Libtool uses the same guarantee.)
60cvs.spec: $(srcdir)/cvs.spec.in $(top_srcdir)/configure.in
61	sed 's,@VERSION\@,$(VERSION),g' $(srcdir)/cvs.spec.in >cvs.tspec
62	mv cvs.tspec $(srcdir)/cvs.spec
63
64# for backwards compatibility with the old makefiles
65.PHONY: realclean
66realclean: maintainer-clean
67