Fix makefile rule ambiguity on mocks