]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_languages): Test $objdir, not $srcdir, to
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 4 Dec 2002 20:22:20 +0000 (20:22 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 4 Dec 2002 20:22:20 +0000 (20:22 +0000)
decides whether a _.c file is in a subdirectory and has to be
cleaned separately.
Reported by Kevin Ride.

ChangeLog
automake.in

index ef3bf03f2cc9922d42e24d1ad45a54863fe0c7c7..7d2687a26dd2b47e5cd105d8bbfebba0e0cf6237 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2002-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * automake.in (handle_languages): Test $objdir, not $srcdir, to
+       decides whether a _.c file is in a subdirectory and has to be
+       cleaned separately.
+       Reported by Kevin Ride.
+
        * tests/ansi10.test (liblib_a_LIBADD): Set ac_cv_prog_cc_stdc
        not am_cv_prog_cc_stdc.
 
index 106f61481366f3eb8223d1c5caa72c2af9c1951d..dbfe34854eca72b6d07fe781ffd228b868d86d23 100755 (executable)
@@ -2172,11 +2172,11 @@ sub handle_languages
            # we have to create foo_.c in the current directory.
            # (Unless the user asks 'subdir-objects'.)  This is important
            # in case the same file (`foo.c') is compiled from other
-           # directories with different cpp options: foo_.c file would
-           # be preprocessed for only once set of options if it were
-           # but in the subdirectory.
+           # directories with different cpp options: foo_.c would
+           # be preprocessed for only one set of options if it were
+           # put in the subdirectory.
            #
-           # Because foo$U.o must be build from either foo_.c or
+           # Because foo$U.o must be built from either foo_.c or
            # sub/foo.c we can't be as concise as in the first example.
            # Instead we output
            #
@@ -2206,9 +2206,9 @@ sub handle_languages
                (my $source_ = $source) =~ s/\$U/_/g;
                # Explicitely clean the _.c files if they are in
                # a subdirectory. (In the current directory they get
-               # erase by a `rm -f *_.c' rule.)
+               # erased by a `rm -f *_.c' rule.)
                $clean_files{$source_} = MOSTLY_CLEAN
-                 if $srcdir ne '.';
+                 if $objdir ne '.';
                # Output an additional rule if _.c and .c are not in
                # the same directory.  (_.c is always in $objdir.)
                if ($objdir ne $srcdir)
This page took 0.040962 seconds and 5 git commands to generate.