Update Makefile to perform all the necessary setup.