* automake.in (read_am_file): Removed debugging code.
[automake.git] / configure.am
blobbbae72c33dc0452f23fc4252d62ab8189b3a510b
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 2001
3 ## Free Software Foundation, Inc.
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.
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.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA.
20 ## --------------------- ##
21 ## Building Makefile.*.  ##
22 ## --------------------- ##
24 ## This rule remakes the Makefile.in.
25 %MAKEFILE-IN%: %MAINTAINER-MODE% %MAKEFILE-AM% %MAKEFILE-IN-DEPS% $(top_srcdir)/%CONFIGURE-AC% $(ACLOCAL_M4)
26         cd $(top_srcdir) && \
27           $(AUTOMAKE) --%STRICTNESS% %USE-DEPS% %MAKEFILE-AM-SOURCES%
29 ## This rule remakes the Makefile.
30 %MAKEFILE%: %MAINTAINER-MODE% %MAKEFILE-IN% %MAKEFILE-DEPS% $(top_builddir)/config.status
31         cd $(top_builddir) && \
32           CONFIG_HEADERS= CONFIG_LINKS= \
33           CONFIG_FILES=%CONFIG-MAKEFILE% $(SHELL) ./config.status
37 ## --------------------------- ##
38 ## config.status & configure.  ##
39 ## --------------------------- ##
41 if %?TOPDIR_P%
42 ## Explicitly look in srcdir for benefit of non-GNU makes.
43 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
44         $(SHELL) ./config.status --recheck
46 ## Always require configure.ac and configure at top level, even if they
47 ## don't exist.  This is especially important for configure, since it
48 ## won't be created until autoconf is run -- which might be after
49 ## automake is run.
50 DIST_COMMON += configure %CONFIGURE-AC%
52 ## Explicitly look in srcdir for benefit of non-GNU makes.
53 $(srcdir)/configure: %MAINTAINER-MODE% $(srcdir)/%CONFIGURE-AC% $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
54         cd $(srcdir) && $(AUTOCONF)
55 endif %?TOPDIR_P%
59 ## ------------ ##
60 ## aclocal.m4.  ##
61 ## ------------ ##
63 if %?TOPDIR_P%
64 if  %?REGEN-ACLOCAL-M4%
65 $(ACLOCAL_M4): %MAINTAINER-MODE% %CONFIGURE-AC% %ACLOCAL_M4_DEPS%
66         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
67 endif  %?REGEN-ACLOCAL-M4%
68 endif %?TOPDIR_P%