]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly read.c.~50~
authorRoland McGrath <roland@redhat.com>
Thu, 14 Jan 1993 19:26:47 +0000 (19:26 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 14 Jan 1993 19:26:47 +0000 (19:26 +0000)
read.c

diff --git a/read.c b/read.c
index d9a1b4e2974f3f5c6c204a43b09bbcf88e837f0a..72b3fe3e2a58dc7ce6192b78589c98ec51669f95 100644 (file)
--- a/read.c
+++ b/read.c
@@ -383,6 +383,28 @@ read_makefile (filename, type)
            }
          continue;
        }
+      else if (word1eq ("override", 8))
+       {
+         p2 = next_token (p + 8);
+         if (p2 == 0)
+           makefile_error (filename, lineno, "empty `override' directive");
+         if (!strncmp (p2, "define", 6))
+           {
+             if (ignoring)
+               in_ignored_define = 1;
+             else
+               {
+                 unsigned int len;
+                 p2 = end_of_token (p2);
+                 p = find_next_token (&p2, &len);
+                 lineno = do_define (p, len, o_override,
+                                     lineno, infile, filename);
+               }
+           }
+         else if (!ignoring && !try_variable_definition (p2, o_override))
+           makefile_error (filename, lineno, "empty `override' directive");
+       }
+
 
       if (ignoring)
        /* Ignore the line.  We continue here so conditionals
@@ -420,23 +442,6 @@ read_makefile (filename, type)
 
          continue;
        }
-      else if (word1eq ("override", 8))
-       {
-         p2 = next_token (p + 8);
-         if (p2 == 0)
-           makefile_error (filename, lineno, "empty `override' directive");
-         if (!strncmp (p2, "define", 6))
-           {
-             unsigned int len;
-             p2 = end_of_token (p2);
-             p = find_next_token (&p2, &len);
-             lineno = do_define (p, len, o_override,
-                                 lineno, infile, filename);
-           }
-         else if (!try_variable_definition (p2, o_override))
-           makefile_error (filename, lineno,
-                           "Empty `override' directive");
-       }
       else if (word1eq ("export", 6))
        {
          struct variable *v;