Split toplevel Makefile into two functional parts