Thanks Chris, that's all very useful information. I've added a conditional check and it works fine.

Out of curiosity, do most projects which are distributed by source use this method of configuring Makefiles?