Restore most of the Makefile functionality

With automatic dependency tracking!!! :pizza: