[#2119] added "check" as a dependency for "build" in the external Makefile