modify Makefile to clean up old code