This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Implement -MT <target>
- To: "Zack Weinberg" <zackw at Stanford dot EDU>
- Subject: Re: cpplib: Implement -MT <target>
- From: Tom Tromey <tromey at redhat dot com>
- Date: 04 Jan 2001 15:54:13 -0700
- Cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, gcc-patches at gcc dot gnu dot org, Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>, I Lee Hetherington <ilh at sls dot lcs dot mit dot edu>
- References: <20010104000132.A6366@daikokuya.demon.co.uk> <20010103180853.B12948@wolery.stanford.edu>
- Reply-To: tromey at redhat dot com
>>>>> "Zack" == Zack Weinberg <zackw@Stanford.EDU> writes:
Zack> I should warn you that the current semantics of deps_add_target
Zack> are wrong for -MT. It tries to quote dollar signs, spaces,
Zack> etc. in its argument, which means you can't write something like
Zack> -MT '$(objpfx)foo.o $(objpfx)foo.os $(objpfx)foo.op'
Zack> and have it do what you expect. [Glibc needs to do just that - it's
Zack> not a theoretical problem.]
Sometimes you want quoting and sometimes not.
I think automake will always want it. That's because it is
manipulating filenames and not introducing variables or anything like
that.
We could add quoting to automake, I guess, but that seems gross.
What if we had -MT do quoting and -MQ to not do quoting?
Tom