made nice generic makefile. rules now throw out corrupt results. made makefile-template