Fixed the order of targets to be compatible with GNU make 3.81