freebsd-src/targets/pseudo
Simon J. Gerraty 2bdd404abe bootstrap-packages handle optional DIRDEPS
Add logic to bootstrap-packages.sh to handle constructs like:

SUBDIR.${MK_OPT}+= sub

and:

.if ${MK_OPT} == "yes"
SUBDIR+= sub
.endif

there are other methods used in various makefiles
so this will be better than nothing, but not complete coverage.

In either case a reldir will be added to
targets/packages/$package/Makefile.depend.options
rather than
targets/packages/$package/Makefile.depend

It does not matter that in many cases the Makefile.depend will end up
with no DIRDEPS.

Also check that parent Makefile does not have a subdir commented out,
before including it.

If BOOTSTRAP_PACKAGES_FLAGS is -v we report each Makefile.depend[.options]
we create.

Reviewed by:	stevek
2024-10-14 14:58:12 -07:00
..
bootstrap-packages bootstrap-packages handle optional DIRDEPS 2024-10-14 14:58:12 -07:00
bootstrap-tools Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
clang Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gcc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
host-tools local.dirdeps.mk skip N_host_libs for non-FreeBSD host 2023-05-04 11:58:39 -07:00
hosttools Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
kernel Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
loader loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
stage Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
the-lot Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
toolchain Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
universe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
userland mergemaster: remove from the tree 2024-07-16 08:25:54 -04:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00