Re: Multiple rules for same target: what is the order of prerequisites in $^ and what does $< expand to?
Bahman Movaqar <[email protected]>
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Message-ID | <[email protected]> |
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