From 651c3b9e49ed914969795ebf54233bb0fe2b33bf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 30 May 2020 23:23:43 +0000 Subject: makefile_escaping: fix variable name --- makefile_escaping/escaping_shell.mk | 7 ++----- 1 file 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))' -- cgit v1.2.3