I use a Makefile (with GNU make running under Linux) to automate my grunt work when refactoring a Python script. The script creates an output file, and I want to make sure that the output file remains unchanged in face of my refactorings. However, I found no way to get the status code of a command to affect a subsequent shell if command. The following rule illustrates the problem: check-cond-codes