help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

passing targets to submakes


From: sharan basappa
Subject: passing targets to submakes
Date: Thu, 18 Jan 2007 10:15:28 +0000

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]