]> sourceware.org Git - automake.git/commitdiff
Fixes for recurs2.test. Report from Jim Meyering.
authorTom Tromey <tromey@redhat.com>
Tue, 29 Sep 1998 01:28:42 +0000 (01:28 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Sep 1998 01:28:42 +0000 (01:28 +0000)
* automake.in (vars_scanned): Define globally.
(variable_value_as_list_worker): Delete $var entry in
%vars_scanned after local work is done.

ChangeLog
TODO
automake.in

index 56566f015fed106a60ba8c2e45e957b58ec40839..7b21185550d4bf130cece8984ce0308bd3551c77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 29 00:10:22 1998  Tom Tromey  <tromey@cygnus.com>
+
+       Fixes for recurs2.test.  Report from Jim Meyering.
+       * automake.in (vars_scanned): Define globally.
+       (variable_value_as_list_worker): Delete $var entry in
+       %vars_scanned after local work is done.
+
 1998-05-26  Marcus G. Daniels  <mgd@ute.santafe.edu>
 
        * automake.in: New pattern: INCLUDE_PATTERN.
diff --git a/TODO b/TODO
index ebdec9808ffab54a1756fb7568a34fe53e01b9f8..37e6fe571eb4459f27da005fe2c127248d4832a7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -41,8 +41,8 @@
   It should also have AM_FOOFLAGS, which can be set in Makefile.am.
 DONE: but needs to be documented
 
-* Should have a --copy like libtoolize
-  Should be able to update files that would be installed with -a
+* Should be able to update files that would be installed with -a
+  (--force?)
 
 * "make diff" capability
   look at gcc's Makefile.in to see what to do
@@ -153,9 +153,6 @@ might make editing conceptually easier.
 * consider adding pkglibexecdir, maybe others?
   requests for pkg-dirs with version included
 
-Further:
-- man page fixes
-
 Avoid loops when installing; instead unroll them in automake
 
 * for new autoconf:
@@ -174,10 +171,13 @@ Avoid loops when installing; instead unroll them in automake
 Some long-term projects:
 * if $(FOO) is used somewhere, ensure FOO is defined, either by
   user or by automake if possible
-* Don't rearrange order of `include' lines relative to += assignments.
-* Handle += assignments at all.
-* Handle `include' lines by scanning other files, and adding
-  to Makefile.in dependency
+
+* Handle += assignments
+X Handle `include' lines by scanning other files, and adding
+  to Makefile.in dependency  [ this is done, but needs += to be really
+  useful ]
+  even better would be allowing targets in different included
+  fragments to be merged.  e.g., `install-local'.
 
 consider putting all check-* targets onto @check?
 To support --help/--version checking?
@@ -242,10 +242,6 @@ characters long.
 * standards no longer prohibit ANSI C.  What does this imply
   for the de-ansi-fication feature?
 
-consider supporting "var+= stuff" syntax.  rewrite to just var=... on
-output.  This is sometimes convenient when you want to write a
-Makefile.am in more-or-less modular parts
-
 should be able to determine what is built by looking at rules (and
 configure.in).  Then built man pages (eg) could automatically be
 omitted from the distribution.
index 32d8689aa26538043fcbe9141fa4d3df1852fb09..b0ee807860c803e536ac8af25d1d3ad92fae3196 100755 (executable)
@@ -214,6 +214,11 @@ $seen_objext = 0;
 # values are meaningless.
 %configure_vars = ();
 
+# This is used to keep track of which variable definitions we are
+# scanning.  It is only used in certain limited ways, but it has to be
+# global.  It is declared just for documentation purposes.
+%vars_scanned = ();
+
 # Charsets used by maintainer and in distribution.  MAINT_CHARSET is
 # handled in a funny way: if seen in the top-level Makefile.am, it is
 # used for every directory which does not specify a different value.
@@ -4692,6 +4697,10 @@ sub variable_conditions_sub
            }
        }
 
+       # Unset our entry in vars_scanned.  We only care about recursive
+       # definitions.
+       delete $vars_scanned{$var};
+
        return &variable_conditions_permutations (keys %allconds);
     }
 
@@ -4749,6 +4758,10 @@ sub variable_conditions_sub
        }
     }
 
+    # Unset our entry in vars_scanned.  We only care about recursive
+    # definitions.
+    delete $vars_scanned{$var};
+
     return @new_conds
        if ! $parent;
 
@@ -5021,6 +5034,10 @@ sub variable_value_as_list_worker
        push (@result, &value_to_list ($var, $contents{$var}, $cond));
     }
 
+    # Unset our entry in vars_scanned.  We only care about recursive
+    # definitions.
+    delete $vars_scanned{$var};
+
     return @result;
 }
 
This page took 0.050961 seconds and 5 git commands to generate.