Rewrite Makefile.