* Benoit Sigoure wrote on Mon, Apr 23, 2007 at 04:06:44PM CEST:
> Quoting Ralf Wildenhues <[EMAIL PROTECTED]>:
[...]
>>  all-local:
>>        cd gcc-4.0.1 && $(MAKE) all
>
> BTW, this simulates the case when `gcc-4.0.1' is after `.' in SUBDIRS.  
> This won't work if `all' needs to be made in the sub-directory before
> in `.' (which is often the case).
> I don't have a good solution when the sub-directory needs to be invoked
> recursively before `.', does anyone have an idea?  (better than overriding 
> the recursion mechanism with a hand-crafted one)

What about the alternative solution that I outlined?  This one:

>> Maybe a much easier solution is to patch the gcc-4.0.1/Makefile
>> to let distclean be a no-op, then avoid all the manual overriding
>> above, put gcc-4.0.1 in SUBDIRS, and let distclean-local do the
>> cleanup.  In that case, you cannot use parallel `make -j distclean',
>> however.  I suppose that's a minor inconvenience only.

Cheers,
Ralf


Reply via email to