Such an exclusion should be done in the Makefile instead using an if block.