build: ensure rules with pipes might fail

.SHELLFLAGS is extended by option pipefail to make pipes fail if any pipe
element fails. As .SHELLFLAGS is exported into sub-make instances it
must be unexported before calling third-party build systems recursively.
This commit is contained in:
Christian Helmuth
2022-03-10 15:25:50 +01:00
committed by Norman Feske
parent 7da691b52a
commit d182b20705
16 changed files with 63 additions and 22 deletions

View File

@@ -33,3 +33,7 @@ file_content = $(if $(wildcard $1),$(shell cat $1),)
# Force stable sorting order
SORT := LC_ALL=C sort
# ensure pipes might fail but do not confuse sub-makes
.SHELLFLAGS := -o pipefail -c
unexport .SHELLFLAGS