No rule to make target `w'. Stop
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)
@for subdir in `ls */Makefile`; \
echo "+ Making $@ in `dirname $$subdir` ..."; \
(cd `dirname $$subdir`; $(MAKE) $@); \
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
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