On Fri, Apr 10, 2009 at 09:45:33AM +0800, xiangfeng shen wrote:
> Hi Sam,
> 
> I want to replace the for loop to avoid BAD DO.
> So i tried the 3) method, but it does not work :(
> any more suggestion?

I just tried it myself.
It works for me with the following Makefile:

=====
SUBDIRS = foo bar baz
subdirs: $(SUBDIRS)

.PHONY: $(SUBDIRS)
$(SUBDIRS):
        $(MAKE) -C $@

=====
Try to use that pattern and it should work for you too.

        Sam


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to