aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-06-09 00:04:35 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2003-06-09 00:04:35 +0200
commit11acea02c4bfe06996672093ad5fac952951b164 (patch)
tree7f2d320acadffad53a22cfdc0626fa46afd9e7d2 /scripts
parent15c6240cdc44bbeef3c4797ec860f9765ef4f1a7 (diff)
downloadhistory-11acea02c4bfe06996672093ad5fac952951b164.tar.gz
kbuild: kill do_cmd
The lonely two users of do_cmd has gone. Therefore we can now kill it for good
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 5d4b44b7150ab..ece93db9ec6bb 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -220,24 +220,6 @@ if_changed_rule = $(if $(strip $? \
cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1))
-# do_cmd is a shorthand used to support both compressed, verbose
-# and silent output in a single line.
-# Compared to cmd described avobe, do_cmd does no rely on any variables
-# previously assigned a value.
-#
-# Usage $(call do_cmd,CMD $@,cmd_to_execute bla bla)
-# Example:
-# $(call do_cmd,CP $@,cp -b $< $@)
-# make -s => nothing will be printed
-# make KBUILD_VERBOSE=1 => cp -b path/to/src.file path/to/dest.file
-# make KBUILD_VERBOSE=0 => CP path/to/dest.file
-define do_cmd
- @$(if $(filter quiet_,$(quiet)), echo ' $(1)' &&,
- $(if $(filter silent_,$(quiet)),,
- echo "$(2)" &&)) \
- $(2)
-endef
-
# $(call descend,<dir>,<target>)
# Recursively call a sub-make in <dir> with target <target>
# Usage is deprecated, because make do not see this as an invocation of make.