[gen_settings] only check targets on makefile nodes