Hello,

I am Trying to Build a project, Makefile written so that outer make file calls the inner Makefiles to Build,
I am invoking the Makefile as  gmake depend  at the perent directory of project (Makefile here digs in and executes inner Makefiles to build the project)

.DEFAULT:
        @for subdir in `ls */Makefile`; \
          do \
            echo "+ Making $@ in `dirname $$subdir` ..."; \
            (cd `dirname $$subdir`; $(MAKE) $@); \
          done


the automatic variable $@ is set to depend, till some inner directories make process is going well and good ,after  some point after I could see the error Message as  *** No rule to make target `w'.  Stop.,
with google help I found reasons like

1.infinite recursion
 2.The value of $@ is set to w, as target now is w that won't be found in the Makefile so causing such an error.


Ų  I have gmake output I could see make entering in to directories only once and leaving from directories only once, so error is not because of recursion.

Ų  I could see @ := wp  when I issued gmake -p depend.

Could you suggest me the approach to solve this issue

Regards,
Revathi R




DISCLAIMER\ ==========\ This e-mail ...{{dropped:13}}

