Skip to content
Snippets Groups Projects
Commit de64a85b authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

makefiles: app_dirs.inc.mk initial commit

This helper Makefile is supposed to unify finding folders with
applications that can be built.
parent e8dfabd4
Branches
No related tags found
No related merge requests found
# 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)/examples/*/Makefile \
$(RIOTBASE)/tests/*/Makefile \
)))))
info-applications:
@for dir in $(APPLICATION_DIRS); do echo $$dir; done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment