aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makefile_escaping
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-05-30 23:23:43 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-05-30 23:23:43 +0000
commit651c3b9e49ed914969795ebf54233bb0fe2b33bf (patch)
tree2968dc4e8082df13b89c45a52d88e78fb41bb1af /makefile_escaping
parentmakefile_escaping: formatting (diff)
downloadblog-651c3b9e49ed914969795ebf54233bb0fe2b33bf.tar.gz
blog-651c3b9e49ed914969795ebf54233bb0fe2b33bf.zip
makefile_escaping: fix variable name
Diffstat (limited to '')
-rw-r--r--makefile_escaping/escaping_shell.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/makefile_escaping/escaping_shell.mk b/makefile_escaping/escaping_shell.mk
index 1be9c02..bc6afa2 100644
--- a/makefile_escaping/escaping_shell.mk
+++ b/makefile_escaping/escaping_shell.mk
@@ -9,13 +9,10 @@ escape = $(subst ','\'',$(1))
cwd := $(shell basename -- "$$( pwd )")
-echo_cwd := printf '%s\n' '$(call escape,$(cwd))'
-bash_cwd := bash -c '$(call escape,$(echo_cwd))'
-
simple_var := Simple value
-compisite_var := Composite value - $(simple_var) - $(cwd)
+composite_var := Composite value - $(simple_var) - $(cwd)
.PHONY: test
test:
@printf '%s\n' '$(call escape,$(cwd))'
- @printf '%s\n' '$(call escape,$(compisite_var))'
+ @printf '%s\n' '$(call escape,$(composite_var))'