diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-30 23:23:43 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-30 23:23:43 +0000 |
commit | 651c3b9e49ed914969795ebf54233bb0fe2b33bf (patch) | |
tree | 2968dc4e8082df13b89c45a52d88e78fb41bb1af /makefile_escaping/escaping_shell.mk | |
parent | makefile_escaping: formatting (diff) | |
download | blog-651c3b9e49ed914969795ebf54233bb0fe2b33bf.tar.gz blog-651c3b9e49ed914969795ebf54233bb0fe2b33bf.zip |
makefile_escaping: fix variable name
Diffstat (limited to '')
-rw-r--r-- | makefile_escaping/escaping_shell.mk | 7 |
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))' |