Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2024 06:03:28 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   Re: how to see order of make targets steps in ports tree?
Message-ID:  <SI2PR01MB503607D1E9AC65A888CB2892FA292@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
In-Reply-To: <610f900f-658f-474d-885a-abbe709a00f7@quip.cz>
References:  <610f900f-658f-474d-885a-abbe709a00f7@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

Various answers have already been given, however, here is a command that can produce interesting values on this.

make -C /usr/ports/ports-mgmt/pkg -V _TARGETS_STAGES
make -C /usr/ports/ports-mgmt/pkg -V _SANITY_SEQ -V _PKG_SEQ -V _FETCH_SEQ -V _EXTRACT_SEQ -V OMITTED_HEREAFTER:P

The -d option of make also displays some rather interesting things.

make -C /usr/ports/ports-mgmt/pkg -n -d g1

In addition, variables such as _USES_target can be used to add interesting behavior.
For example, in the patch phase, rewriting by replace_cmd may be performed in addition to normal patching.
It makes make makepatch not smart to use.
It can be stopped by defining the following targets. ...I think I wrote that somewhere before :)

_USES_patch+= 501:stop-patch
stop-patch: .NOTMAIN .PHONY
	false

I just don't know if it helps :)

Regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SI2PR01MB503607D1E9AC65A888CB2892FA292>