How do I pass targets passed to top make, to submakes.

I am putting a small example below (nothing extraordinary about this make .. but just to make
life easier in understanding gnu make)

top make contents (exists in dir x)
-------------------------
.PHONY : subdir clean

subdir :
       $(MAKE) --directory=$@


submake contents (exists in dir x/subdir)
------------------------
.PHONY : all clean

all :
       @echo "not sure what you want to do"

clean :
       @echo "i am already clean"

_________________________________________________________________
Do women make better employees? Join the debate http://msnspecials.in/debate/topicdetails.aspx?TID=64



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

Reply via email to