rewrite Makefile