[Top][All Lists]
[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
- [Automake-ng] [PATCH 0/4] deptrack: some more refactorings and simplifications, Stefano Lattarini, 2012/01/26
- [Automake-ng] [PATCH 2/4] [ng] deptrack: refactoring for "fastdep" mode, Stefano Lattarini, 2012/01/26
- [Automake-ng] [PATCH 4/4] [ng] deptrack: remove obsolescent comments, Stefano Lattarini, 2012/01/26
- [Automake-ng] [PATCH 1/4] [ng] deptrack: increase testsuite coverage, Stefano Lattarini, 2012/01/26
- [Automake-ng] [PATCH 3/4] [ng] deptrack: simplify by assuming more GNU make semantics, Stefano Lattarini, 2012/01/26
- Re: [Automake-ng] [PATCH 0/4] deptrack: some more refactorings and simplifications, Stefano Lattarini, 2012/01/31