Making sure directories created before object files in makefile