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