mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 09:33:50 +01:00
buildsystem: clean dist/tools with (dist)clean as well
This commit is contained in:
parent
6290516399
commit
3a3e8f74fe
4
Makefile
4
Makefile
@ -17,7 +17,7 @@ docclean:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning all build products for the current board"
|
@echo "Cleaning all build products for the current board"
|
||||||
@for dir in $(APPLICATION_DIRS); do "$(MAKE)" -C$$dir clean; done
|
@for dir in $(APPLICATION_DIRS) $(TOOLS_DIRS); do "$(MAKE)" -C$$dir clean; done
|
||||||
|
|
||||||
pkg-clean:
|
pkg-clean:
|
||||||
@echo "Cleaning all package sources"
|
@echo "Cleaning all package sources"
|
||||||
@ -25,7 +25,7 @@ pkg-clean:
|
|||||||
|
|
||||||
distclean: docclean pkg-clean
|
distclean: docclean pkg-clean
|
||||||
@echo "Cleaning all build products"
|
@echo "Cleaning all build products"
|
||||||
@for dir in $(APPLICATION_DIRS); do "$(MAKE)" -C$$dir distclean; done
|
@for dir in $(APPLICATION_DIRS) $(TOOLS_DIRS); do "$(MAKE)" -C$$dir distclean; done
|
||||||
|
|
||||||
print-versions:
|
print-versions:
|
||||||
@./dist/tools/ci/print_toolchain_versions.sh
|
@./dist/tools/ci/print_toolchain_versions.sh
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
RIOTBASE ?= .
|
RIOTBASE ?= .
|
||||||
|
|
||||||
APPS_BASE_DIRS = bootloaders examples fuzzing tests
|
APPS_BASE_DIRS = bootloaders examples fuzzing tests
|
||||||
|
TOOLS_BASE_DIRS = dist/tools
|
||||||
|
|
||||||
# 1. recursively find Makefiles
|
# 1. recursively find Makefiles
|
||||||
# 2. take parent folders
|
# 2. take parent folders
|
||||||
@ -16,6 +17,12 @@ APPLICATION_DIRS := $(shell find $(APPS_BASE_DIRS) -name Makefile -type f | \
|
|||||||
grep -vFf $(RIOTBASE)/makefiles/app_dirs.blacklist | \
|
grep -vFf $(RIOTBASE)/makefiles/app_dirs.blacklist | \
|
||||||
sort | uniq)
|
sort | uniq)
|
||||||
|
|
||||||
|
# used for `make claen` and `make distclean`
|
||||||
|
TOOLS_DIRS := $(shell find $(TOOLS_BASE_DIRS) -mindepth 2 -maxdepth 2 -name Makefile -type f | \
|
||||||
|
xargs dirname | \
|
||||||
|
grep -vFf $(RIOTBASE)/makefiles/app_dirs.blacklist | \
|
||||||
|
sort | uniq)
|
||||||
|
|
||||||
info-applications:
|
info-applications:
|
||||||
@for dir in $(APPLICATION_DIRS); do echo $$dir; done
|
@for dir in $(APPLICATION_DIRS); do echo $$dir; done
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user