automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Automake-ng] [PATCH 2/4] [ng] deptrack: refactoring for "fastdep" m


From: Stefano Lattarini
Subject: Re: [Automake-ng] [PATCH 2/4] [ng] deptrack: refactoring for "fastdep" mode
Date: Thu, 26 Jan 2012 17:30:45 +0100

On 01/26/2012 04:40 PM, Eric Blake wrote:
> On 01/26/2012 06:44 AM, Stefano Lattarini wrote:
>>  ## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
>> -?!GENERIC?  %VERBOSE%%COMPILE% -MT %OBJ% -MD -MP -MF %DEPBASE%.Tpo %-c% -o 
>> %OBJ% %SOURCEFLAG%`test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
>> -?!GENERIC?  %SILENT%$(am__mv) %DEPBASE%.Tpo %DEPBASE%.Po
>> -?GENERIC??!SUBDIROBJ?       %VERBOSE%%COMPILE% -MT %OBJ% -MD -MP -MF 
>> %DEPBASE%.Tpo %-c% -o %OBJ% %SOURCEFLAG%%SOURCE%
>> -?GENERIC??!SUBDIROBJ?       %SILENT%$(am__mv) %DEPBASE%.Tpo %DEPBASE%.Po
>> -?GENERIC??SUBDIROBJ?        %VERBOSE%depbase=`echo %OBJ% | sed 
>> 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
>> -?GENERIC??SUBDIROBJ?        %COMPILE% -MT %OBJ% -MD -MP -MF %DEPBASE%.Tpo 
>> %-c% -o %OBJ% %SOURCEFLAG%%SOURCE% &&\
>> -?GENERIC??SUBDIROBJ?        $(am__mv) %DEPBASE%.Tpo %DEPBASE%.Po
>> +?!GENERIC?  %SOURCEFLAG%`test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
> 
> Is there any way to get rid of the `` subshell, and use GNU make
> primitives instead?
> 
My knee-jerk reaction is that $(wildcard) and $(word) might help with that;
but I think that such an optimization would be more appropriate for a
follow-up change (for which I'd glaaadly accept patches ;-)

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]