projects-dir.mk: Add BUILD_DEP_FLAVOURS_*
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m12s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m30s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m4s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m33s
CI / Packaging test (push) Successful in 0s
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m12s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m30s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m4s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m33s
CI / Packaging test (push) Successful in 0s
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: - BUILD_DEP_FLAVOURS for all - BUILD_DEP_FLAVOURS_LINT for check, check-pre, and check-post - BUILD_DEP_FLAVOURS_TEST for test - BUILD_DEP_FLAVOURS_ORDER, renamed from BUILD_ORDER_DEP_FLAVOURS, used by build-order-% 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. Signed-off-by: Jan Lindemann <jan@janware.com> Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
This commit is contained in:
parent
f76071815f
commit
0c4a69bd9a
1 changed files with 13 additions and 4 deletions
|
|
@ -53,7 +53,10 @@ else
|
|||
PROJECTS ?= $(shell ls -d */GNUmakefile */Makefile 2>/dev/null | sed 's%/[^/]*%%' | sort -u)
|
||||
endif
|
||||
|
||||
BUILD_ORDER_DEP_FLAVOURS ?= run,build,test,release
|
||||
BUILD_DEP_FLAVOURS ?= run,build,test,release
|
||||
BUILD_DEP_FLAVOURS_LINT ?= run,build,test,release
|
||||
BUILD_DEP_FLAVOURS_TEST ?= run,build,test,release
|
||||
BUILD_DEP_FLAVOURS_ORDER ?= run,build,test,release
|
||||
|
||||
ifeq ($(JW_PKG_VERBOSE),true)
|
||||
SSH_WRAPPER_TRACE ?= -x
|
||||
|
|
@ -158,8 +161,14 @@ PROJECTS_WITH_PROJECT_CONF = $(patsubst %/make/project.conf,%,$(wildcard $(add
|
|||
# --- mandatory targets
|
||||
|
||||
all:
|
||||
all test check check-pre check-post: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||
$(JW_PKG_PY_BUILD) $@ $(TARGET_PROJECTS)
|
||||
all: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||
$(JW_PKG_PY_BUILD) --dep-flavours="$(BUILD_DEP_FLAVOURS)" $@ $(TARGET_PROJECTS)
|
||||
check check-pre check-post: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||
$(JW_PKG_PY_BUILD) --dep-flavours="$(BUILD_DEP_FLAVOURS_LINT)" $@ $(TARGET_PROJECTS)
|
||||
test: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||
$(JW_PKG_PY_BUILD) --dep-flavours="$(BUILD_DEP_FLAVOURS_TEST)" $@ $(TARGET_PROJECTS)
|
||||
|
||||
|
||||
clean: clean-dirs
|
||||
distclean: clean-all-dirs done.clean
|
||||
install:
|
||||
|
|
@ -184,7 +193,7 @@ help doc-project doc-module:
|
|||
status: $(SSH_WRAPPER_SH)
|
||||
|
||||
build-order-%: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||
@JW_DEFAULT_LOG_LEVEL=WARNING $(JW_PKG_PY_BUILD) --build-order --dep-flavours="$(BUILD_ORDER_DEP_FLAVOURS)" $* $(TARGET_PROJECTS) | sed 's/ */\n/g'
|
||||
@JW_DEFAULT_LOG_LEVEL=WARNING $(JW_PKG_PY_BUILD) --build-order --dep-flavours="$(BUILD_DEP_FLAVOURS_ORDER)" $* $(TARGET_PROJECTS) | sed 's/ */\n/g'
|
||||
|
||||
build-order: build-order-all
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue