Rearrage Makefiles for GNU make.