Make makefile more modular.