2019-04-30 16:41:33 +02:00
|
|
|
.PHONY: info-applications info-applications-supported-boards
|
2019-04-30 16:40:39 +02:00
|
|
|
|
2018-08-30 22:50:53 +02:00
|
|
|
# fallback so empty RIOTBASE won't lead to "/examples/"
|
|
|
|
RIOTBASE ?= .
|
|
|
|
|
|
|
|
# 1. use wildcard to find Makefiles
|
|
|
|
# 2. use patsubst to drop trailing "/"
|
|
|
|
# 3. use patsubst to drop possible leading "./"
|
|
|
|
# 4. sort
|
|
|
|
APPLICATION_DIRS := $(sort $(patsubst ./%,%,$(patsubst %/,%,$(dir $(wildcard \
|
2020-04-17 15:46:21 +02:00
|
|
|
$(RIOTBASE)/fuzzing/*/Makefile \
|
2019-04-23 10:30:25 +02:00
|
|
|
$(RIOTBASE)/bootloaders/*/Makefile \
|
|
|
|
$(RIOTBASE)/examples/*/Makefile \
|
|
|
|
$(RIOTBASE)/tests/*/Makefile \
|
2018-08-30 22:50:53 +02:00
|
|
|
)))))
|
|
|
|
|
|
|
|
info-applications:
|
|
|
|
@for dir in $(APPLICATION_DIRS); do echo $$dir; done
|
2019-04-30 16:41:33 +02:00
|
|
|
|
|
|
|
# All applications / board output of `info-boards-supported`.
|
|
|
|
info-applications-supported-boards:
|
|
|
|
@for dir in $(APPLICATION_DIRS); do \
|
2020-07-03 11:17:57 +02:00
|
|
|
$(MAKE) --no-print-directory -C $${dir} info-boards-supported 2>/dev/null | xargs -n 1 echo $${dir}; \
|
2019-04-30 16:41:33 +02:00
|
|
|
done
|
2019-05-27 21:04:49 +02:00
|
|
|
# BOARDS values from 'boards.inc.mk' to only evaluate it once
|
|
|
|
info-applications-supported-boards: export BOARDS ?=
|