"Paul D. Smith" wrote: > I just do something like: > > MAKEDIRLIST += foo bar > ... > MAKEDIRLIST += biz > ... > MAKEDIRLIST += boz > > ... > > $(shell for d in $(MAKEDIRLIST); do ...etc) > > Just put the $(shell ...) at the end and do them all at once. You don't > have to do them in order: remember all makefiles are read first before > any rules are run.
I think at one point, I saw another reason why this wouldn't work, but maybe that reason doesn't exist anymore. I'll have to think about this a bit more. I also thought that: ifneq ($(filter $(wildcard $(MAKEDIRLIST),$(MAKEDIRLIST))),) $(shell mkdir -p $(MAKEDIRLIST)) endif would avoid $(shell)'ing if the directories are already there. Thanks, Noel _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
