Rearrange Makefile according to what needs adaptation.