Mark H Weaver <m...@netris.org> skribis:

> Alex Kost <alez...@gmail.com> writes:
>
>> Ricardo Wurmus (2015-06-14 19:32 +0300) wrote:
>>
>> [...]
>>> +    (build-system gnu-build-system)
>>> +    (arguments
>>> +     `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs 
>>> "out")))
>>
>> I think it is clearer to use just '%output':
>>
>>         `(#:make-flags (list (string-append "prefix=" %output)))
>
> I've been wondering about this as well.  It seems that Ludovic often
> (usually?) writes (assoc-ref %outputs "out"), and I wonder why.  One
> possible reason is that it makes it obvious how to get the filename of
> other outputs.

Right, I usually avoid %output (singular) because it’s a special case of
%outputs, so I prefer using %outputs.

Ludo’.

Reply via email to