gen res target if res folder contains any file