CODE:
LIST=0 1 2 3 4 5 PREFIX=rambo # some looping logic to interate over LIST
EXPECTED RESULT:
rambo0: sh rambo_script0.s
If you're using GNU make, you can generate arbitrary targets at run-time:
LIST = 0 1 2 3 4 5 define make-rambo-target rambo$1: sh rambo_script$1.sh all:: rambo$1 endef $(foreach element,$(LIST),$(eval $(call make-rambo-target,$(element))))