Split makevars.mk into Makefile.dirrules and Makefile.dirbase