Don't hide makefile errors in pipes (#848)

Follow up to #846 - make sure that if an error happens inside a target whose output is piped, we stop.
pull/850/head
Yuri Astrakhan 2020-05-04 16:41:55 -04:00 zatwierdzone przez GitHub
rodzic 29973669ae
commit 0d0d9c6b89
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
# Ensure that errors don't hide inside pipes
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c
# Options to run with docker and docker-compose - ensure the container is destroyed on exit
# Containers run as the current user rather than root (so that created files are not root-owned)
DC_OPTS?=--rm -u $(shell id -u):$(shell id -g)