Skip to content

Commit

Permalink
Merge pull request #1201 from Kijewski/exclusive-make-clean
Browse files Browse the repository at this point in the history
make: make clean usable together with `-j`
  • Loading branch information
Kijewski committed May 23, 2014
2 parents d52651f + 3d6c700 commit 9f40d01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,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
Expand Down

0 comments on commit 9f40d01

Please sign in to comment.