diff options
Diffstat (limited to 'testcase/foreach.mk')
-rw-r--r-- | testcase/foreach.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testcase/foreach.mk b/testcase/foreach.mk index 3dde97a..e1b8a00 100644 --- a/testcase/foreach.mk +++ b/testcase/foreach.mk @@ -1,7 +1,15 @@ base := base dirs := a b c d dir := FAIL +comma := , files := $(foreach dir,$(dirs),$(foreach subdir,$(dirs),$(dir)/$(subdir)/$(base))) +ifdef KATI +files2 := $(KATI_foreach_sep dir,$(comma) ,$(dirs),"$(dir)") +else +# Since make doesn't have the function, manually set the result. +files2 := "a", "b", "c", "d" +endif test: echo $(files) + echo $(files2) |