* doc/autoconf.texi (Limitations of Usual Tools): Document sed
[autoconf.git] / Makefile.am
blob3e20b84127d58f126df72dacca2730a30528d14b
1 ## Process this file with automake to create Makefile.in. -*-Makefile-*-
3 ## Makefile for Autoconf.
5 ## Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software
6 ## Foundation, Inc.
8 ## This program is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 2, or (at your option)
11 ## any later version.
13 ## This program is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
23 # bin/ must be run first, as it builds executables needed for tests.
24 # autom4te uses autotest.m4f to generate `testsuite', so build tests last.
25 SUBDIRS = bin . lib config man doc tests
27 ACLOCAL_AMFLAGS = -I config
29 EXTRA_DIST = ChangeLog.0 ChangeLog.1 ChangeLog.2 \
30              BUGS \
31              GNUmakefile Makefile.maint Makefile.cfg
33 MAINTAINERCLEANFILES = $(srcdir)/INSTALL
35 ## -------------------- ##
36 ## Forwarding targets.  ##
37 ## -------------------- ##
39 html:
40         cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
42 .PHONY: html
45 ## --------- ##
46 ## INSTALL.  ##
47 ## --------- ##
49 pkgdata_DATA = $(srcdir)/INSTALL
50 AM_MAKEINFOFLAGS = --no-headers --no-validate --no-split
51 $(srcdir)/INSTALL: $(top_srcdir)/doc/install.texi
52         $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -o $@ \
53           $(top_srcdir)/doc/install.texi
55 ## maintainer-check ##
56 maintainer-check: maintainer-check-tests
57 maintainer-check-tests:
58         cd tests && make maintainer-check
61 ## ----------------------------------- ##
62 ## Updating Perl files from Automake.  ##
63 ## ----------------------------------- ##
65 ## Fetch the latest versions of files we care about.
66 automake_cvsweb = \
67    http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/automake
68 automake_cvsargs = \
69    'content-type=text/plain&cvsroot=automake'
70 autom4te_files = \
71   Autom4te/Configure_ac.pm \
72   Autom4te/Channels.pm \
73   Autom4te/FileUtils.pm \
74   Autom4te/Struct.pm \
75   Autom4te/XFile.pm
77 autom4te-update:
78         rm -f -r Fetchdir > /dev/null 2>&1
79         mkdir Fetchdir; mkdir Fetchdir/Autom4te
80 ## If a get fails then that is a problem.
81         (cd Fetchdir && \
82         $(WGET) $(automake_cvsweb)/lib/Automake/Configure_ac.pm?$(automake_cvsargs) -O Autom4te/Configure_ac.pm; \
83         $(WGET) $(automake_cvsweb)/lib/Automake/Channels.pm?$(automake_cvsargs) -O Autom4te/Channels.pm; \
84         $(WGET) $(automake_cvsweb)/lib/Automake/FileUtils.pm?$(automake_cvsargs) -O Autom4te/FileUtils.pm; \
85         $(WGET) $(automake_cvsweb)/lib/Automake/Struct.pm?$(automake_cvsargs) -O Autom4te/Struct.pm; \
86         $(WGET) $(automake_cvsweb)/lib/Automake/XFile.pm?$(automake_cvsargs) -O Autom4te/XFile.pm; \
87         :)
88         perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
89         for file in $(autom4te_files); do \
90           $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file; \
91         done