help-make
[Top][All Lists]
Advanced

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

Re: Multiple rules for same target: what is the order of prerequisites i


From: Bahman Movaqar
Subject: Re: Multiple rules for same target: what is the order of prerequisites in $^ and what does $< expand to?
Date: Mon, 02 Oct 2023 12:25:39 -0700
User-agent: Evolution 3.50.0

On Mon, 2023-10-02 at 15:14 -0400, Paul Smith wrote:
> You should put the "important" prerequisite, if one exists, on the rule
> containing the recipe.  If that rule doesn't list any prerequisites,
> you are effectively saying that none of the prerequisites is special
> and they are all interchangeable.  In that case, $< doesn't really make
> sense; why would you need to get the first prerequisite specifically,
> if all the prerequisites are interchangeable?

TIL 💡

Noted down w/ thanks.

-- 
Bahman

Join the chatter on Matrix:
         🗣️ https://matrix.to/#/#.mk:matrix.org
      
Subscribe to the Lemmy community:
         🐭 https://lemmy.ml/c/makefile



reply via email to

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