2019-04-30 16:40:39 +02:00
|
|
|
.PHONY: info-applications
|
|
|
|
|
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 \
|
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
|