Skip to content

Commit

Permalink
Merge pull request #21199 from crasbe/pr/fix_makechecks
Browse files Browse the repository at this point in the history
Makefile.include: perform checks for all relevant targets
  • Loading branch information
mguetschow authored Feb 10, 2025
2 parents 7e33118 + 91dae97 commit 25c0d8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit 25c0d8a

Please sign in to comment.