This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: New bugs
- To: tromey at redhat dot com
- Subject: Re: New bugs
- From: Akim Demaille <akim at epita dot fr>
- Date: 31 Jan 2001 18:37:09 +0100
- Cc: Automake List <automake at gnu dot org>
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- References: <87ae8a6uef.fsf@creche.redhat.com><mv4vgqvfypc.fsf@nostromo.lrde.epita.fr>
>>>>> "Akim" == Akim Demaille <akim@epita.fr> writes:
Akim> First I want to write/enhance a test that fails on this.
Sorry for being that dumb. I finally understood the problem. Here is
what I'm applying:
Index: ChangeLog
from Akim Demaille <akim@epita.fr>
* automake.in (add_depend2): Quote properly $obj and $source.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.844
diff -u -u -r1.844 automake.in
--- automake.in 2001/01/31 16:50:01 1.844
+++ automake.in 2001/01/31 17:31:52
@@ -3035,13 +3035,13 @@
'BASE' => $obj,
'SOURCE' => $source)
# Generate rule for `.o'.
- . 's/^\@EXT\@\.o:/' . $obj . '.o: ' . $source . '/g;'
+ . 's/^\@EXT\@\.o:/' . "\Q$obj.o: $source\E" . '/g;'
# Maybe generate rule for `.lo'. Might be eliminated
# by $XFORM.
- . 's/^\@EXT\@\.lo:/' . $obj . '.lo: ' . $source . '/g;'
+ . 's/^\@EXT\@\.lo:/' . "\Q$obj.lo: $source\E" . '/g;'
# Maybe generate rule for `.obj'. Might be
# eliminated by $XFORM.
- . 's/^\@EXT\@\.obj:/' . $obj . '.obj: ' . $source . '/g;');
+ . 's/^\@EXT\@\.obj:/' . "\Q$obj.obj: $source\E" . '/g;');
}
}
Alternatively we could use a better scheme in depend2.am (to tell the
truth, I'd like to have *only* @FOO@ substitutions).