build gobal file