makefiles: Build the tests directly from the top-level makefile.