Say I have the following files:
buggy_program:
#!/bin/sh echo \"wops, some bug made me exit with failure\" exit 1
Makefile:
<
Try this
SHELL=/bin/bash -o pipefail file.gz: buggy_program | gzip -9 -c >$@