summaryrefslogtreecommitdiff
path: root/scripts/Makefile.clean
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2002-12-30 13:09:26 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-12-30 13:09:26 -0600
commit69964a474a397a844e82d0b49e40f8f6d46eaefa (patch)
treecd94da23c85ab2b713ab5cbc9904329e1ea1d335 /scripts/Makefile.clean
parent527efc055988aedfe42978197b6ab9764405e896 (diff)
kbuild: $(build) and $(clean) macros for make invocation
The former macro $(descend ...) hide for make the fact that a recursively make was invoked. The replacement $(Q)$(MAKE) -f scripts/Makefile.build obj=dir was too verbose. Introduced $(build) and $(clean) allowing the following syntax: $(Q)$(MAKE) $(build)=arch/i386/boot target and similar for clean. Introduced $(build) and $(clean) in general, and for i386 architecture.
Diffstat (limited to 'scripts/Makefile.clean')
-rw-r--r--scripts/Makefile.clean7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index e7c392fd5788..07af41d7933e 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -56,8 +56,13 @@ endif
.PHONY: $(subdir-ymn)
$(subdir-ymn):
- $(Q)$(MAKE) -f scripts/Makefile.clean obj=$@
+ $(Q)$(MAKE) $(clean)=$@
# If quiet is set, only print short version of command
cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1))
+
+# Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir
+# Usage:
+# $(Q)$(MAKE) $(clean)=dir
+clean := -f scripts/Makefile.clean obj