fixed global Makefile generation order