update the Makefile to avoid unnessasary re-building