summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-10-03 18:26:55 +0000
committerTom Tromey <tromey@redhat.com>1998-10-03 18:26:55 +0000
commitdee4d56f21c54563bcd57e54613abf00009b9e7e (patch)
treef5318277e25a094b9944a056bbe26f5275447d87
parentaff7619c0b36d695a5d5e8406e3a0be90f85efd4 (diff)
downloadautomake-dee4d56f21c54563bcd57e54613abf00009b9e7e.tar.gz
* automake.in (handle_aclocal_m4): Use new MAINTAINER_MODE
conditional. (handle_configure): Likewise. (read_am_file): Likewise. (file_contents_with_transform): Likewise. (scan_one_configure_file): Recognize that AM_MAINTAINER_MODE defines a conditional. * automake.texi (Optional): Document new AM_MAINTAINER_MODE. * texi-vers.am ($(srcdir)/@VTEXI@): Look at MAINTAINER_MODE conditional. (maintainer-clean-@VTI@): Likewise. * remake.am ($(srcdir)/configure): Look at MAINTAINER_MODE conditional. * remake-hdr.am ($(srcdir)/@CONFIG_HEADER_IN@): Look at MAINTAINER_MODE conditional. * m4/maintainer.m4 (AM_MAINTAINER_MODE): Defined MAINTAINER_MODE conditional.
-rw-r--r--ChangeLog20
-rw-r--r--NEWS1
-rw-r--r--TODO3
-rwxr-xr-xautomake.in24
-rw-r--r--automake.texi3
-rw-r--r--lib/am/remake-hdr.am4
-rw-r--r--lib/am/texi-vers.am6
-rw-r--r--m4/maintainer.m47
-rw-r--r--remake-hdr.am4
-rw-r--r--remake.am4
-rw-r--r--stamp-vti2
-rw-r--r--texi-vers.am6
-rw-r--r--version.texi2
13 files changed, 57 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index 2925418a2..e9eb482c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+Sat Oct 3 14:53:34 1998 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_aclocal_m4): Use new MAINTAINER_MODE
+ conditional.
+ (handle_configure): Likewise.
+ (read_am_file): Likewise.
+ (file_contents_with_transform): Likewise.
+ (scan_one_configure_file): Recognize that AM_MAINTAINER_MODE
+ defines a conditional.
+ * automake.texi (Optional): Document new AM_MAINTAINER_MODE.
+ * texi-vers.am ($(srcdir)/@VTEXI@): Look at MAINTAINER_MODE
+ conditional.
+ (maintainer-clean-@VTI@): Likewise.
+ * remake.am ($(srcdir)/configure): Look at MAINTAINER_MODE
+ conditional.
+ * remake-hdr.am ($(srcdir)/@CONFIG_HEADER_IN@): Look at
+ MAINTAINER_MODE conditional.
+ * m4/maintainer.m4 (AM_MAINTAINER_MODE): Defined MAINTAINER_MODE
+ conditional.
+
1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
* depend2.am (%.lo): When editing the dependency file to add the
diff --git a/NEWS b/NEWS
index d9d1d2e17..54e73e7e0 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ New in 1.3b:
* Can now put `.' in SUBDIRS to control build order
* `include' command
* Dependency tracking no long susceptible to deleted header file problem
+* Maintainer mode now a conditional. @MAINT@ is now an anachronism.
* Bug fixes
New in 1.3:
diff --git a/TODO b/TODO
index 3a7d43307..1d066a6b0 100644
--- a/TODO
+++ b/TODO
@@ -7,8 +7,7 @@
* reintroduce AM_FUNC_FNMATCH which sets LIBOBJS
Then have automake know about fnmatch.h.
-* Reimplement maintainer mode to use conditionals
- Also add a conditional for dependency tracking
+* Add a conditional for dependency tracking
* Allow per-object cflags:
bin_PROGRAMS = foo
diff --git a/automake.in b/automake.in
index 70b408f09..9b7da94de 100755
--- a/automake.in
+++ b/automake.in
@@ -2770,7 +2770,9 @@ sub handle_aclocal_m4
if ($regen_aclocal)
{
local (@ac_deps) = (
- ($seen_maint_mode ? "\@MAINT\@" : "") ,
+ ($seen_maint_mode
+ ? "\@MAINTAINER_MODE_TRUE\@"
+ : "") ,
"configure.in",
($acinclude ? ' acinclude.m4' : '')
);
@@ -2867,14 +2869,16 @@ sub handle_configure
local (@rewritten) = &rewrite_inputs_into_dependencies (1,
@secondary_inputs);
- # This rule remakes the Makefile.in. Note use of @MAINT@ forces
- # us to abandon pretty-printing. Sigh.
+
+ # This rule remakes the Makefile.in. Note use of
+ # @MAINTAINER_MODE_TRUE@ forces us to abandon pretty-printing.
+ # Sigh.
$output_rules .= ($infile
# NOTE perl 5.003 (with -w) gives a
# uninitialized value error on the next line.
# Don't know why.
. ': '
- . ($seen_maint_mode ? '@MAINT@ ' : '')
+ . ($seen_maint_mode ? '@MAINTAINER_MODE_TRUE@ ' : '')
. $amfile . ' '
. '$(top_srcdir)/configure.in $(ACLOCAL_M4)'
. ' ' . join (' ', @include_stack)
@@ -2932,7 +2936,7 @@ sub handle_configure
{
if ($iter =~ /Makefile\.in$/)
{
- $make_dirs{&dirname ($iterm)} = 1;
+ $make_dirs{&dirname ($iter)} = 1;
}
}
@@ -4141,7 +4145,11 @@ sub scan_one_configure_file
}
$seen_decl_yytext = 1 if /AC_DECL_YYTEXT/;
- $seen_maint_mode = 1 if /AM_MAINTAINER_MODE/;
+ if (/AM_MAINTAINER_MODE/)
+ {
+ $seen_maint_mode = 1;
+ $configure_cond{'MAINTAINER_MODE'} = 1;
+ }
$seen_package = 1 if /PACKAGE=/;
# Skip VERSION of [$2]; that is from AM_INIT_AUTOMAKE.
@@ -5487,6 +5495,8 @@ sub read_am_file
$_ .= "\n"
unless substr ($_, -1, 1) eq "\n";
+ # Don't look at MAINTAINER_MODE_TRUE here. That shouldn't be
+ # used by users. @MAINT@ is an anachronism now.
$_ =~ s/\@MAINT\@//g
unless $seen_maint_mode;
@@ -6011,7 +6021,7 @@ sub file_contents_with_transform
while (<FC_FILE>)
{
- $_ =~ s/\@MAINT\@//g
+ $_ =~ s/\@MAINTAINER_MODE_TRUE\@//g
unless $seen_maint_mode;
$had_chars = length ($_) && $_ ne "\n";
diff --git a/automake.texi b/automake.texi
index a17ee2729..c68c43a84 100644
--- a/automake.texi
+++ b/automake.texi
@@ -1014,7 +1014,8 @@ This macro adds a @samp{--enable-maintainer-mode} option to
@code{configure}. If this is used, @code{automake} will cause
``maintainer-only'' rules to be turned off by default in the generated
@file{Makefile.in}s. This macro is disallowed in @samp{Gnits} mode
-(@pxref{Gnits}).
+(@pxref{Gnits}). This macro defines the @samp{MAINTAINER_MODE}
+conditional, which you can use in your own @file{Makefile.am}.
@cvindex AM_MAINTAINER_MODE
@item AC_SUBST
diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am
index 3315ebf49..9161aea18 100644
--- a/lib/am/remake-hdr.am
+++ b/lib/am/remake-hdr.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@
$(SHELL) ./config.status
@echo timestamp > @STAMP@
## Explicitly look in srcdir for benefit of non-GNU makes.
-$(srcdir)/@CONFIG_HEADER_IN@: @MAINT@$(srcdir)/@STAMP@.in
+$(srcdir)/@CONFIG_HEADER_IN@: @MAINTAINER_MODE_TRUE@$(srcdir)/@STAMP@.in
$(srcdir)/@STAMP@.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) @FILES@
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/@STAMP@.in
diff --git a/lib/am/texi-vers.am b/lib/am/texi-vers.am
index 5172cbe11..30124aeda 100644
--- a/lib/am/texi-vers.am
+++ b/lib/am/texi-vers.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-$(srcdir)/@VTEXI@: @MAINT@stamp-@VTI@
+$(srcdir)/@VTEXI@: @MAINTAINER_MODE_TRUE@stamp-@VTI@
@:
## Depend on configure.in so that version number updates cause a
@@ -42,5 +42,5 @@ clean-@VTI@:
distclean-@VTI@:
maintainer-clean-@VTI@:
- -@MAINT@rm -f stamp-@VTI@ @VTEXI@
+ -@MAINTAINER_MODE_TRUE@rm -f stamp-@VTI@ @VTEXI@
diff --git a/m4/maintainer.m4 b/m4/maintainer.m4
index 5d9a7658b..95f138691 100644
--- a/m4/maintainer.m4
+++ b/m4/maintainer.m4
@@ -12,11 +12,8 @@ AC_DEFUN(AM_MAINTAINER_MODE,
USE_MAINTAINER_MODE=$enableval,
USE_MAINTAINER_MODE=no)
AC_MSG_RESULT($USE_MAINTAINER_MODE)
- if test $USE_MAINTAINER_MODE = yes; then
- MAINT=
- else
- MAINT='#M#'
- fi
+ AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
+ MAINT=$MAINTAINER_MODE_TRUE
AC_SUBST(MAINT)dnl
]
)
diff --git a/remake-hdr.am b/remake-hdr.am
index 3315ebf49..9161aea18 100644
--- a/remake-hdr.am
+++ b/remake-hdr.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@
$(SHELL) ./config.status
@echo timestamp > @STAMP@
## Explicitly look in srcdir for benefit of non-GNU makes.
-$(srcdir)/@CONFIG_HEADER_IN@: @MAINT@$(srcdir)/@STAMP@.in
+$(srcdir)/@CONFIG_HEADER_IN@: @MAINTAINER_MODE_TRUE@$(srcdir)/@STAMP@.in
$(srcdir)/@STAMP@.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) @FILES@
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/@STAMP@.in
diff --git a/remake.am b/remake.am
index 486c3ce81..14d82ebe8 100644
--- a/remake.am
+++ b/remake.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -20,5 +20,5 @@
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
## Explicitly look in srcdir for benefit of non-GNU makes.
-$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
diff --git a/stamp-vti b/stamp-vti
index 0415893d6..c14f931fa 100644
--- a/stamp-vti
+++ b/stamp-vti
@@ -1,3 +1,3 @@
-@set UPDATED 28 September 1998
+@set UPDATED 3 October 1998
@set EDITION 1.3c
@set VERSION 1.3c
diff --git a/texi-vers.am b/texi-vers.am
index 5172cbe11..30124aeda 100644
--- a/texi-vers.am
+++ b/texi-vers.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-$(srcdir)/@VTEXI@: @MAINT@stamp-@VTI@
+$(srcdir)/@VTEXI@: @MAINTAINER_MODE_TRUE@stamp-@VTI@
@:
## Depend on configure.in so that version number updates cause a
@@ -42,5 +42,5 @@ clean-@VTI@:
distclean-@VTI@:
maintainer-clean-@VTI@:
- -@MAINT@rm -f stamp-@VTI@ @VTEXI@
+ -@MAINTAINER_MODE_TRUE@rm -f stamp-@VTI@ @VTEXI@
diff --git a/version.texi b/version.texi
index 0415893d6..c14f931fa 100644
--- a/version.texi
+++ b/version.texi
@@ -1,3 +1,3 @@
-@set UPDATED 28 September 1998
+@set UPDATED 3 October 1998
@set EDITION 1.3c
@set VERSION 1.3c