1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #21199 from crasbe/pr/fix_makechecks

Makefile.include: perform checks for all relevant targets
This commit is contained in:
mguetschow 2025-02-10 16:38:52 +00:00 committed by GitHub
commit d630a1594e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -934,7 +934,7 @@ include $(RIOTMAKE)/tools/targets.inc.mk
include $(RIOTMAKE)/usb-codes.inc.mk
# Warn if the selected board and drivers don't provide all needed features:
ifneq (, $(filter all flash, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all)))
ifeq (, $(filter help generate-Makefile.ci, $(MAKECMDGOALS)))
EXPECT_ERRORS :=
# Test if there where dependencies against a module in DISABLE_MODULE.
@ -1012,7 +1012,8 @@ endif
help:
# filter all targets starting with lowercase and containing lowercase letters, hyphens, or underscores; explicitly include generate-Makefile.ci
@$(MAKE) -qp | sed -ne 's/\(^[a-z][a-z_-]*\|generate-Makefile.ci\):.*/\1/p' | sort -u
# inspired by: https://stackoverflow.com/a/26339924
@LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | sed -ne 's/\(^[a-z][a-z_-]*\|generate-Makefile.ci\):.*/\1/p' | sort -u
ifeq (iotlab-m3,$(BOARD))
ifneq (,$(filter iotlab-%,$(MAKECMDGOALS)))