aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.clean
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.clean')
-rw-r--r--scripts/Makefile.clean10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index 9c978b7bbdf1..62351b630fab 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -7,6 +7,11 @@ src := $(obj)
7.PHONY: __clean 7.PHONY: __clean
8__clean: 8__clean:
9 9
10# Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir
11# Usage:
12# $(Q)$(MAKE) $(clean)=dir
13clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj
14
10# The filename Kbuild has precedence over Makefile 15# The filename Kbuild has precedence over Makefile
11include $(if $(wildcard $(srctree)/$(src)/Kbuild), \ 16include $(if $(wildcard $(srctree)/$(src)/Kbuild), \
12 $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile) 17 $(srctree)/$(src)/Kbuild, $(srctree)/$(src)/Makefile)
@@ -89,8 +94,3 @@ $(subdir-ymn):
89# If quiet is set, only print short version of command 94# If quiet is set, only print short version of command
90 95
91cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1)) 96cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1))
92
93# Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir
94# Usage:
95# $(Q)$(MAKE) $(clean)=dir
96clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj