1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/app_dirs.inc.mk

18 lines
505 B
Makefile
Raw Normal View History

.PHONY: info-applications
# 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 \
$(RIOTBASE)/bootloaders/*/Makefile \
$(RIOTBASE)/examples/*/Makefile \
$(RIOTBASE)/tests/*/Makefile \
)))))
info-applications:
@for dir in $(APPLICATION_DIRS); do echo $$dir; done