I want to run diff in a makefile and catch the output,
test:
diff a b > tmp
but diff returns non-zero if it catches any differences.
Make interprets the non-zero return code as an error, and even if I ignore the error using -diff, it still prints a warning.
makefile:7: recipe for target 'test' failed
make: [test] Error 1 (ignored)
Can I make it shut up?