I have used variable filter_out_pattern for convenience only; results are
the same if you use $(patsubst %,%/\%,$(subDir)) instead.
# Makefile
dirs:=/dir1 /dir1/dir2
subDir:= /dir1
filter_out_pattern:=$(patsubst %,%/\%,$(subDir))
foo:
@echo dirs=$(dirs)
@echo filter_out_pattern=$(filter_out_pattern)
@echo after filtering: dirs=$(filter-out
$(filter_out_pattern),$(dirs))
@echo should be: dirs=$(filter-out /dir1/%,$(dirs))
#eof
[greg@p3 junk]$ make
dirs=/dir1 /dir1/dir2
filter_out_pattern=/dir1/%
after filtering: dirs=/dir1 /dir1/dir2
should be: dirs=/dir1
- Greg Keraunen
http://www.xmake.org
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
