proper use of nested conditionals in makefile