Re: how to see order of make targets steps in ports tree?

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Thu, 14 Mar 2024 19:44:55 UTC
On Thu, Mar 14, 2024 at 9:55 PM Miroslav Lachman <000.fbsd@quip.cz> wrote:
>
> Is there a way to see the order of the executed steps by "make"?
>
> tl;dr: I know "make" will run many targets like fetch, checksum,
> extract, patch... but I would like to see some verbose info about these
> steps, mainly what is the order of the steps when I run "make".
> I tried to create some patch to one the port and it seems like
> "shebangfix" is run before "patch" but I don't know how to see what is
> true order of the targets.
>
> Kind reagards
> Miroslav Lachman
>

Here is the relevant piece of code:
https://github.com/freebsd/freebsd-ports/blob/48aba78cfc9200e236e17781f94456d57c599a69/Mk/bsd.port.mk#L5436
You can also use `make -N` to see actual commands ran by any target.