summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makerules30
1 files changed, 16 insertions, 14 deletions
diff --git a/Makerules b/Makerules
index ed36dab90..cb1c554bc 100644
--- a/Makerules
+++ b/Makerules
@@ -152,25 +152,27 @@ bri_disp_install = $(pur_disp_install)
bri_disp_unifdef = $(pur_disp_unifdef)
bri_disp_rm = $(pur_disp_rm)
-ver_disp_compile.c = echo $(cmd_compile.c)
-ver_disp_compile.i = echo $(cmd_compile.i)
-ver_disp_compile.s = echo $(cmd_compile.s)
-ver_disp_compile.u = echo $(cmd_compile.u)
-ver_disp_compile.S = echo $(cmd_compile.S)
-ver_disp_compile.m = echo $(cmd_compile.m)
-ver_disp_compile.mi= echo $(cmd_compile.mi)
-ver_disp_compile-m = echo $(cmd_compile-m)
-ver_disp_hcompile.u= echo $(cmd_hcompile.u)
-ver_disp_hcompile.o= echo $(cmd_hcompile.o)
-ver_disp_strip = echo $(cmd_strip)
-ver_disp_t_strip = echo $(cmd_t_strip)
-ver_disp_ar = echo $(cmd_ar)
+esc=$(subst ','\'',$(1))
+# ')
+ver_disp_compile.c = echo '$(call esc,$(cmd_compile.c))'
+ver_disp_compile.i = echo '$(call esc,$(cmd_compile.i))'
+ver_disp_compile.s = echo '$(call esc,$(cmd_compile.s))'
+ver_disp_compile.u = echo '$(call esc,$(cmd_compile.u))'
+ver_disp_compile.S = echo '$(call esc,$(cmd_compile.S))'
+ver_disp_compile.m = echo '$(call esc,$(cmd_compile.m))'
+ver_disp_compile.mi= echo '$(call esc,$(cmd_compile.mi))'
+ver_disp_compile-m = echo '$(call esc,$(cmd_compile-m))'
+ver_disp_hcompile.u= echo '$(call esc,$(cmd_hcompile.u))'
+ver_disp_hcompile.o= echo '$(call esc,$(cmd_hcompile.o))'
+ver_disp_strip = echo '$(call esc,$(cmd_strip))'
+ver_disp_t_strip = echo '$(call esc,$(cmd_t_strip))'
+ver_disp_ar = echo '$(call esc,$(cmd_ar))'
ver_disp_ld =
ver_disp_ln =
ver_disp_mkdir =
ver_disp_gen =
ver_disp_install =
-ver_disp_unifdef = echo $(cmd_unifdef)
+ver_disp_unifdef = echo '$(call esc,$(cmd_unifdef))'
ver_disp_rm =
disp_compile.c = $($(DISP)_disp_compile.c)