This logic should be in the Makefile, as specified above.