Rewrite makefile system