moved gen script makefiles to top level dir