Rearrange Makefile.