summaryrefslogtreecommitdiffstats
path: root/rules/other
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-06-11 02:24:57 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-06-11 02:24:57 +0000
commit7be731059d55a53b72a5ab021ade83bf0fed04dc (patch)
tree8e03d31299251e2779daeb276679026ddc3953a3 /rules/other
parentd25ff6504fe9fea2e4449cb7bda5b0bff8752059 (diff)
downloadptxdist-7be731059d55a53b72a5ab021ade83bf0fed04dc.tar.gz
ptxdist-7be731059d55a53b72a5ab021ade83bf0fed04dc.tar.xz
[Definitions] add_quote: quote '$', too
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10741 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/other')
-rw-r--r--rules/other/Definitions.make11
1 files changed, 6 insertions, 5 deletions
diff --git a/rules/other/Definitions.make b/rules/other/Definitions.make
index 0b9bed8ef..3f658f01e 100644
--- a/rules/other/Definitions.make
+++ b/rules/other/Definitions.make
@@ -10,14 +10,15 @@ PARALLELMFLAGS_BROKEN := -j1
# Some definitions for stuff which even kicks vim's syntax highlighting
# off the corner...
#
-comma:=,
-nullstring:=
-space:= $(nullstring) $(nullstring)
-quote:="#"
+comma :=,
+dollar := $$
+nullstring :=
+space :=$(nullstring) $(nullstring)
+quote :="#"
remove_quotes = $(strip $(subst $(quote),,$(1)))
-add_quote = $(strip $(subst $(quote),\$(quote),$(1)))
+add_quote = $(strip $(subst $(dollar),\\$(dollar),$(subst $(quote),\$(quote),$(1))))
tr_sh = $(strip $(shell echo $(1) | sed 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'))