]> sourceware.org Git - automake.git/commitdiff
* automake.in (&file_contents_internal): Apply the @cond_stack to
authorAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 13:53:29 +0000 (13:53 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 13:53:29 +0000 (13:53 +0000)
the rules and assignments.
Don't rely on `$.' as it's biased by &make_paragraphs.
Don't remove backslashes in variable values.

ChangeLog
automake.in

index c41fa933eee56f4f81aab671197c8287f26af6b2..b131c4ea1b8f48bbde26c5d498a71a9f8dc1957a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-05-08  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&file_contents_internal): Apply the @cond_stack to
+       the rules and assignments.
+       Don't rely on `$.' as it's biased by &make_paragraphs.
+       Don't remove backslashes in variable values.
+
 2001-05-08  Akim Demaille  <akim@epita.fr>
 
        * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
index 1db97bb640993201dc56d424732d3bc3b2b7bcff..cdf0fc3233fe9e3202bd457cd29c22a109a2e49e 100755 (executable)
@@ -7008,18 +7008,20 @@ sub file_contents_internal ($%)
                  if (!defined $targets{$targets}
                      && $cond ne 'FALSE')
                    {
+                     $paragraph =~ s/^/make_condition (@cond_stack)/gme;
                      $result_rules .= "$spacing$comment$paragraph\n";
-                     rule_define ($targets, $is_am, $cond, $.);
+                     rule_define ($targets, $is_am, $cond, $file);
                    }
                  $comment = $spacing = '';
                  last;
                }
            }
        }
+
        elsif (/$ASSIGNMENT_PATTERN/mso)
        {
            my ($var, $type, $val) = ($1, $2, $3);
-           &prog_error ("$file:$.: macro `$var' with trailing backslash")
+           &am_file_error ($file, "macro `$var' with trailing backslash")
              if /\\$/;;
 
            # Accumulating variables must not be output.
@@ -7027,9 +7029,7 @@ sub file_contents_internal ($%)
              if (!defined $var_comment{$var}
                  || substr ($var_comment{$var}, -1) ne "\n");
            $var_comment{$var} .= "$comment";
-           # Strip the continuation backslashes.
-           $val =~ s/\\$//mg;
-           macro_define ($var, $is_am, $type, $cond, $val, $.)
+           macro_define ($var, $is_am, $type, $cond, $val, $file)
              if $cond ne 'FALSE';
            push (@var_list, $var);
 
@@ -7048,6 +7048,7 @@ sub file_contents_internal ($%)
            # or some part of a rule cut by an if/endif.
            if ($cond ne 'FALSE')
              {
+               s/^/make_condition (@cond_stack)/gme;
                $result_rules .= "$spacing$comment$_\n";
              }
            $comment = $spacing = '';
This page took 0.039435 seconds and 5 git commands to generate.