mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: make clean usable together with -j
This commit is contained in:
parent
f3a587f43a
commit
3d6c7008e5
@ -106,6 +106,11 @@ USEMODULE_INCLUDES_ = $(shell echo $(USEMODULE_INCLUDES) | tr ' ' '\n' | awk '!a
|
||||
|
||||
INCLUDES += $(USEMODULE_INCLUDES_:%=-I%)
|
||||
|
||||
# The `clean` needs to be serialized before everything else.
|
||||
ifneq (, $(filter clean, $(MAKECMDGOALS)))
|
||||
$(OBJ) $(BASELIBS) $(USEPKG:%=$(RIOTBASE)/pkg/%/Makefile.include): clean
|
||||
endif
|
||||
|
||||
# include Makefile.includes for packages in $(USEPKG)
|
||||
$(RIOTBASE)/pkg/%/Makefile.include::
|
||||
$(AD)"$(MAKE)" -C $(RIOTBASE)/pkg/$* Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user