Catch pipefail errors in Makefile

https://stackoverflow.com/questions/33925523/how-to-set-pipefail-in-a-makefile