rewrite makefile