]> sourceware.org Git - automake.git/commitdiff
* automake.in (&initialize_per_input): %targets_conditionals is
authorAkim Demaille <akim@epita.fr>
Sun, 25 Feb 2001 18:17:57 +0000 (18:17 +0000)
committerAkim Demaille <akim@epita.fr>
Sun, 25 Feb 2001 18:17:57 +0000 (18:17 +0000)
new.
(&read_am_file): When slurping a rule, set the target related
variable, and no variable related variable.
(&file_contents): Likewise.
* tests/vartar.test, tests/ctarget1.test: New.

ChangeLog
TODO
automake.in
tests/Makefile.am
tests/Makefile.in

index 9a94c48d4321ab09940539576b3e443f6800f35f..c6baa6848665c88e806a39e6731a10d406844aad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-02-25  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&initialize_per_input): %targets_conditionals is
+       new.
+       (&read_am_file): When slurping a rule, set the target related
+       variable, and no variable related variable.
+       (&file_contents): Likewise.
+       * tests/vartar.test, tests/ctarget1.test: New.
+
+       
 2001-02-25  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&variable_defined, &variable_value_as_list_worker):
diff --git a/TODO b/TODO
index fbf67c01980b8a60ba035accf1d83460ed6f71ee..1fc173ed4932b6212a8ae932807e8b7ad87d4ce7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -274,7 +274,6 @@ still be able to have a Makefile.am in each directory somehow; this
 might make editing conceptually easier.
 
 * finish up TAGS work
-* `acinstall'
 
 * only remove libtool at top level?
 
@@ -598,14 +597,6 @@ Then automake can use -MD -MH -MT 'foo.o foo.lo' -MF .deps/...
 
 ================================================================
 
-Things to do for autoconf:
-
-* patch autoreconf to run automake and aclocal.  I've done this but it is
-  not really available.  It can't be made available until automake
-  is officially released
-
-================================================================
-
 Libraries:
 
 * Should support standalone library along with subdir library in same
index f99f8a4189d894e52b7689b1fce05ec485b75329..5b9be4e3b62c90a9948a32329074cd002368b0b0 100755 (executable)
@@ -5469,7 +5469,7 @@ sub variable_defined ($$)
        return 1;
     }
 
-    &am_line_error ($var, "\`$var' is target; expected variable")
+    &am_line_error ($var, "\`$var' is a target; expected a variable")
       if defined $targets{$var};
 
     return 0;
@@ -5813,7 +5813,7 @@ sub variable_value_as_list_worker
     {
         if (defined $targets{$var})
          {
-           &am_line_error ($var, "\`$var' is target; expected variable");
+           &am_line_error ($var, "\`$var' is a target; expected a variable");
          }
        else
          {
@@ -6126,27 +6126,25 @@ sub read_am_file
        {
            # Found a rule.
            $was_rule = 1;
-           if (defined $contents{$1}
+           if (defined $targets{$1}
                && (@conditional_stack
-                   ? ! defined $conditional{$1}
-                   : defined $conditional{$1}))
+                   ? ! defined $target_conditional{$1}
+                   : defined $target_conditional{$1}))
            {
                &am_line_error ($1,
                                "$1 defined both conditionally and unconditionally");
            }
            # Value here doesn't matter; for targets we only note
            # existence.
-# FIXME: I don't understand the next line at all, it seems dead wrong --akim
-           $contents{$1} = 1;
            $targets{$1} = 1;
            my $cond_string = join ('', @conditional_stack);
            if (@conditional_stack)
            {
-               if ($conditional{$1})
+               if ($target_conditional{$1})
                {
                    &check_ambiguous_conditional ($1, $cond_string);
                }
-               ${$conditional{$1}}{$cond_string} = '1';
+               ${$target_conditional{$1}}{$cond_string} = '1';
            }
            $content_lines{$1} = $.;
            $output_trailer .= $comment . $spacing . $cond_string . $_;
@@ -6497,10 +6495,6 @@ sub initialize_per_input
     # read_am_file.
     %contents = ();
 
-    # This holds the names which are targets.  These also appear in
-    # %contents.
-    %targets = ();
-
     # This maps a variable name onto a flag.  The flag is true iff the
     # variable was first defined with `+='.
     %var_was_plus_eq = ();
@@ -6526,6 +6520,13 @@ sub initialize_per_input
     # This holds a 1 if a particular variable was examined.
     %content_seen = ();
 
+    # This holds the names which are targets.  These also appear in
+    # %contents.
+    %targets = ();
+
+    # Same as %CONDITIONAL, but for targets.
+    %target_conditional = ();
+
     # This is the conditional stack.
     @conditional_stack = ();
 
@@ -6840,7 +6841,7 @@ sub file_contents
                {
                  # Free lance dependency.  Output the rule for all the
                  # targets instead of one by one.
-                 if (!defined $contents{$targets})
+                 if (!defined $targets{$targets})
                    {
                      # Some hair to avoid spurious trailing blank
                      # when there are no dependencies.
index b688a6f74bf857080f843f6fd9e28309425fb703..09095208610aa986dc8d174dcc4681fd46526ac0 100644 (file)
@@ -74,6 +74,7 @@ confsub.test \
 confvar.test \
 confvar2.test \
 copy.test \
+ctarget1.test \
 cxxansi.test \
 cxxcpp.test \
 cxxlibobj.test \
@@ -262,6 +263,7 @@ texinfo7.test \
 texinfo8.test \
 texinfo9.test \
 unused.test \
+vartar.test \
 version.test \
 version2.test \
 version3.test \
index 8606cf0f13f9334048e0f9bd2c4fa901d6db8b64..cf0a25b12f42f210f568fcaa7a0b5c6b54534e64 100644 (file)
@@ -151,6 +151,7 @@ confsub.test \
 confvar.test \
 confvar2.test \
 copy.test \
+ctarget1.test \
 cxxansi.test \
 cxxcpp.test \
 cxxlibobj.test \
@@ -339,6 +340,7 @@ texinfo7.test \
 texinfo8.test \
 texinfo9.test \
 unused.test \
+vartar.test \
 version.test \
 version2.test \
 version3.test \
This page took 0.056615 seconds and 5 git commands to generate.