[gen_settings] fix bug when target is not specified (use default list)
[gen_settings] only check targets on makefile nodes