Fixed Makefile to properly clear intermediate files