[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 Accepted
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),)

Comments

Dmitry Safonov July 18, 2018, 2:29 p.m.
2018-07-12 13:51 GMT+01:00 Cyrill Gorcunov <gorcunov@gmail.com>:
> mrproper doesn't require inclusion of deps similar
> as clean target.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>

Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>

Thanks,
             Dmitry