Makefile Update

Updated makefile to workaround some inconsistent behaviour I observed.