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
|
2023-03-30 16:12:49 +02:00
|
|
|
|
|
|
|
# Prepare the list of application directories
|
|
|
|
APPLICATION_DIRS := \
|
|
|
|
fuzzing \
|
|
|
|
bootloaders \
|
|
|
|
examples \
|
|
|
|
tests \
|
2023-05-10 09:47:32 +02:00
|
|
|
tests/bench \
|
2023-05-11 14:30:38 +02:00
|
|
|
tests/build_system \
|
2023-05-10 10:17:34 +02:00
|
|
|
tests/core \
|
2023-05-12 10:30:11 +02:00
|
|
|
tests/cpu \
|
2023-03-30 16:12:49 +02:00
|
|
|
tests/drivers \
|
2023-05-12 11:31:46 +02:00
|
|
|
tests/net \
|
2023-05-05 10:27:00 +02:00
|
|
|
tests/periph \
|
2023-05-05 10:09:58 +02:00
|
|
|
tests/pkg \
|
2023-05-10 10:33:33 +02:00
|
|
|
tests/sys \
|
2023-03-30 16:12:49 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
APPLICATION_DIRS := $(addprefix $(RIOTBASE)/,$(APPLICATION_DIRS))
|
|
|
|
APPLICATION_DIRS_RELATIVE := $(dir $(wildcard $(addsuffix /*/Makefile,$(APPLICATION_DIRS))))
|
|
|
|
APPLICATION_DIRS_ABSOLUTE := $(abspath $(APPLICATION_DIRS_RELATIVE))
|
|
|
|
APPLICATION_DIRS := $(sort $(patsubst ./%,%,$(patsubst %/,%,$(APPLICATION_DIRS_RELATIVE))))
|
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 ?=
|