update make file to automatically delete intermediate files