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
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)
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., 59 Temple Place - Suite 330, Boston, MA
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 \
31 GNUmakefile Makefile.maint Makefile.cfg
33 MAINTAINERCLEANFILES = $(srcdir)/INSTALL
35 ## -------------------- ##
36 ## Forwarding targets. ##
37 ## -------------------- ##
40 cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
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.
67 http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/automake
69 'content-type=text/plain&cvsroot=automake'
71 Autom4te/Configure_ac.pm \
72 Autom4te/Channels.pm \
73 Autom4te/FileUtils.pm \
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.
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; \
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; \