T.E.D.'s answer triggered me to come up with the following:
ifeq ($(uname),Linux)cmockery_tests_exe = cmockery_testselsecmockery_tests_exe = $()endif.PHONY: allall: $(unittest++_tests_exe) $(cmockery_tests_exe) @echo Running UnitTest++ tests... @./$(unittest++_tests_exe)ifeq ($(uname),Linux) @echo Running Cmockery tests... @./$(cmockery_tests_exe)endif
It seems to work, but I welcome your suggestions.