makefiles: Move all the recursion rules to the top-level makefile.