Generate res target when res contained any file, if only contans folder we willn't gen the target