diff options
author | Jan Beulich <jbeulich@novell.com> | 2006-01-30 04:04:27 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-02-19 03:51:21 -0500 |
commit | 6176aa9ae4b83e1957d3031774f8a8e59ff97420 (patch) | |
tree | 7b44789ab8d87f721c5d9fcd10a9a5cb0e5d65d1 /scripts/Makefile.build | |
parent | 20a468b51325b3636785a8ca0047ae514b39cbd5 (diff) |
kbuild: consolidate command line escaping
While the recent change to also escape # symbols when storing C-file
compilation command lines was helpful, it should be in effect for all
command lines, as much as the dollar escaping should be in effect for
C-source compilation commands. Additionally, for better readability and
maintenance, consolidating all the escaping (single quotes, dollars,
and now sharps) was also desirable.
Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 2737765f2fb4..6ac96ea92bfc 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -178,12 +178,10 @@ cmd_modversions = \ | |||
178 | endif | 178 | endif |
179 | 179 | ||
180 | define rule_cc_o_c | 180 | define rule_cc_o_c |
181 | $(if $($(quiet)cmd_checksrc),echo ' $($(quiet)cmd_checksrc)';) \ | 181 | $(call echo-cmd,checksrc) $(cmd_checksrc) \ |
182 | $(cmd_checksrc) \ | 182 | $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \ |
183 | $(if $($(quiet)cmd_cc_o_c),echo ' $(call escsq,$($(quiet)cmd_cc_o_c))';) \ | ||
184 | $(cmd_cc_o_c); \ | ||
185 | $(cmd_modversions) \ | 183 | $(cmd_modversions) \ |
186 | scripts/basic/fixdep $(depfile) $@ '$(call escsq,$(cmd_cc_o_c))' > $(@D)/.$(@F).tmp; \ | 184 | scripts/basic/fixdep $(depfile) $@ '$(call make-cmd,cc_o_c)' > $(@D)/.$(@F).tmp; \ |
187 | rm -f $(depfile); \ | 185 | rm -f $(depfile); \ |
188 | mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd | 186 | mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd |
189 | endef | 187 | endef |