automake-ng
[Top][All Lists]
Advanced

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

Re: [Automake-NG] [PATCH 04/14] [ng] clean: revamp recipes and APIs to e


From: Stefano Lattarini
Subject: Re: [Automake-NG] [PATCH 04/14] [ng] clean: revamp recipes and APIs to extend cleaning rules
Date: Sun, 24 Jun 2012 22:01:18 +0200

Hi Akim.  Sorry for the later  answer, that I has somehow missed
your mail.

On 06/21/2012 10:19 PM, Akim Demaille wrote:
>>>> +    $(call .am.clean-cmd.f,$(am__mostlyclean_files))
>>>> +    $(call .am.clean-cmd.d,$(am__mostlyclean_dirs))
>>>
>>> You could also just pass the name of the variable.
>>>
>> I don't follow.  What do you mean?
> 
> I meant
> 
> +    $(call .am.clean-cmd.f,am__mostlyclean_files)
> +    $(call .am.clean-cmd.d,am__mostlyclean_dirs)
> 
> Which might trigger the desire to go further
> 
> +    $(call .am.clean-cmd,mostlyclean)
> 
> For instance.
>
Ah, but that will limit the scope of the '.am.clean-cmd.{f,d}' commands,
making them only able to act on the content of a give variable, rather
than on a generic list of items (which might or might not be variable
references).  The reduction in code size that would be gain with your
proposed API is not worth such a limitation IMHO.

Regards,
  Stefano



reply via email to

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