|
@@ -7,6 +7,7 @@ quote := "
|
|
squote := '
|
|
squote := '
|
|
empty :=
|
|
empty :=
|
|
space := $(empty) $(empty)
|
|
space := $(empty) $(empty)
|
|
|
|
+pound := \#
|
|
|
|
|
|
###
|
|
###
|
|
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
|
|
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
|
|
@@ -242,11 +243,11 @@ endif
|
|
|
|
|
|
# Replace >$< with >$$< to preserve $ when reloading the .cmd file
|
|
# Replace >$< with >$$< to preserve $ when reloading the .cmd file
|
|
# (needed for make)
|
|
# (needed for make)
|
|
-# Replace >#< with >\#< to avoid starting a comment in the .cmd file
|
|
|
|
|
|
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
|
|
# (needed for make)
|
|
# (needed for make)
|
|
# Replace >'< with >'\''< to be able to enclose the whole string in '...'
|
|
# Replace >'< with >'\''< to be able to enclose the whole string in '...'
|
|
# (needed for the shell)
|
|
# (needed for the shell)
|
|
-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
|
|
|
|
|
|
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
|
|
|
|
|
|
# Find any prerequisites that is newer than target or that does not exist.
|
|
# Find any prerequisites that is newer than target or that does not exist.
|
|
# PHONY targets skipped in both cases.
|
|
# PHONY targets skipped in both cases.
|