[01/11] nmk: Don't include deps on mrproper

Submitted by Cyrill Gorcunov on July 12, 2018, 12:51 p.m.

Details

Message ID 20180712125142.8737-2-gorcunov@gmail.com
State New
Series "build: Fix issue on simultaneous build"
Headers show

Commit Message

Cyrill Gorcunov July 12, 2018, 12:51 p.m.
mrproper doesn't require inclusion of deps similar
as clean target.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 scripts/nmk/scripts/build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk
index a6bd47d526a6..890a912d09b0 100644
--- a/scripts/nmk/scripts/build.mk
+++ b/scripts/nmk/scripts/build.mk
@@ -270,7 +270,7 @@  define collect-deps
 endef
 
 ifneq ($(MAKECMDGOALS),)
-        ifneq ($(MAKECMDGOALS),clean)
+        ifneq ($(filter-out clean mrproper,$(MAKECMDGOALS)),)
                 $(foreach goal,$(MAKECMDGOALS),$(eval $(call collect-deps,$(goal))))
                 deps-y := $(call uniq,$(deps-y))
                 ifneq ($(deps-y),)