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.
This commit is contained in:
Yuri Astrakhan 2020-05-04 16:41:55 -04:00 committed by GitHub
parent 29973669ae
commit 0d0d9c6b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)