From 53561c6a2e81d8da95f695bfa460dc209e3600cb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 21 Mar 2022 08:56:58 +0300 Subject: makefile_escaping: consistent prelude --- makefile_escaping/escaping_env_vars.mk | 3 ++- makefile_escaping/escaping_quotes.mk | 3 ++- makefile_escaping/escaping_shell.mk | 3 ++- makefile_escaping/quoting_args.mk | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/makefile_escaping/escaping_env_vars.mk b/makefile_escaping/escaping_env_vars.mk index e1aeebf..28fc9c6 100644 --- a/makefile_escaping/escaping_env_vars.mk +++ b/makefile_escaping/escaping_env_vars.mk @@ -1,9 +1,10 @@ MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS .DEFAULT_GOAL := all .DELETE_ON_ERROR: .SUFFIXES: SHELL := bash -.SHELLFLAGS := -e -o pipefail -c +.SHELLFLAGS := -eu -o pipefail -c escape = $(subst ','\'',$(1)) diff --git a/makefile_escaping/escaping_quotes.mk b/makefile_escaping/escaping_quotes.mk index 4da5ce9..f6d7994 100644 --- a/makefile_escaping/escaping_quotes.mk +++ b/makefile_escaping/escaping_quotes.mk @@ -1,9 +1,10 @@ MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS .DEFAULT_GOAL := all .DELETE_ON_ERROR: .SUFFIXES: SHELL := bash -.SHELLFLAGS := -e -o pipefail -c +.SHELLFLAGS := -eu -o pipefail -c escape = $(subst ','\'',$(1)) diff --git a/makefile_escaping/escaping_shell.mk b/makefile_escaping/escaping_shell.mk index a7631fb..365e6ff 100644 --- a/makefile_escaping/escaping_shell.mk +++ b/makefile_escaping/escaping_shell.mk @@ -1,9 +1,10 @@ MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS .DEFAULT_GOAL := all .DELETE_ON_ERROR: .SUFFIXES: SHELL := bash -.SHELLFLAGS := -e -o pipefail -c +.SHELLFLAGS := -eu -o pipefail -c escape = $(subst ','\'',$(1)) diff --git a/makefile_escaping/quoting_args.mk b/makefile_escaping/quoting_args.mk index 4bec8ee..6d7278c 100644 --- a/makefile_escaping/quoting_args.mk +++ b/makefile_escaping/quoting_args.mk @@ -1,9 +1,10 @@ MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS .DEFAULT_GOAL := all .DELETE_ON_ERROR: .SUFFIXES: SHELL := bash -.SHELLFLAGS := -e -o pipefail -c +.SHELLFLAGS := -eu -o pipefail -c test_var := Same line? export test_var -- cgit v1.2.3