Hello, This works:
.PHONY: foobar% OBJS := foobar0 foobar1 %: $(filter $*%,$(OBJS)) @echo $@: $^ $(MAKEFILE_LIST) $(OBJS): ; I get: >make foobar foobar: foobar0 foobar1 which is what I want. So then why doesn't this work the same way: .PHONY: foobar% .SECONDEXPANSION: %: $$(filter $$*%,$$(OBJS)) @echo $@: $^ OBJS := foobar0 foobar1 $(MAKEFILE_LIST) $(OBJS): ; This is embarrassing, Mark _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make