The makefile already does this check as well. Which is probably the right place to check (since it stops even before compiling)