1 2 3 4 5 6 7
base := base dirs := a b c d dir := FAIL files := $(foreach dir,$(dirs),$(foreach subdir,$(dirs),$(dir)/$(subdir)/$(base))) test: echo $(files)