> However the problem with eval is still a problem for me. Since I am doing a > non-recursive make I want to do the following: > > $(foreach DIR,$(DIRS),$(eval include $(SUBDIR_MAKEFILE))) > > Which of course gives me the virtual memory exhausted bug. >
Without knowing what DIRS and SUBDIR_MAKEFILE are, I'm not exactly sure what you're trying to do. I use a non-recursive make but I don't use $(eval). Is there a reason you can't just include the files without the eval? DIRS = foo bar MAKEFILES = $(addsuffix /Makefile,$(DIRS)) include $(MAKEFILES) -Mike _______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make