Hi Greg,

It doesn't work for me taht way. I followed another approach in my makefile 
(master).

I redeclared TARGET in the makefile individaully for both the subdir. but 
before that I did "MAKEOVERRIDES = ". And things worked for me.

Thanks
Praveen


-----Original Message-----
From: Greg Chicares [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 5:28 PM
To: Praveen SINGH
Cc: [email protected]
Subject: Re: (no subject)


On 2005-9-7 6:23 UTC, Praveen SINGH wrote:
> 
> export BASE:=yyy_BASE
> 
> ...
> dirs: 
>       mkdir -p $(OBJ)
>       cd $(SUBDIR_1) && $(MAKE)
>       cd $(SUBDIR_2) && $(MAKE) TARGET=$(BASE)
> 
> And I build like "make TARGET=xxx_BASE".

Try quoting it this way:
        cd $(SUBDIR_2) && $(MAKE) TARGET='$(BASE)'
Does that work?



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

Reply via email to