projects-dir.mk: Add BUILD_DEP_FLAVOURS_* #114
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260919-projects-dir-mk-add-build-dep-flavours"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
projects-dir.mk: Add BUILD_DEP_FLAVOURS_*
The top-level all, test, check, check-pre, and check-post targets invoke the build tool without --dep-flavours, so it falls back to the auto default and only resolves dependencies of the flavour "build". The build-order-% target, by contrast, already passes the run,build,test,release set via a single BUILD_ORDER_DEP_FLAVOURS variable. Planning and building therefore rely on different dependency flavours, and none of the targets can be tuned individually.
Introduce one flavour variable per target group, all of them defaulting to the run,build,test,release set:
Split the combined all test check check-pre check-post rule into three rules so that each group passes its own --dep-flavours to the build tool. all, test, and the check targets now also resolve run, test, and release dependencies, as build-order already does, and each target's flavour set can be overridden independently.
Note that they all default the whole shebang: run,build,test,release. And this opens up the door to dependency cycles that don't exist with the subset of projects currently used. It's still better to ask for all and then cut down as needed instead of starting small.