rewrite makefiles