Hi Stephan,

Thanks for your input...

In your solution....do you run the configure(1) script from the ROOT_SRC
directory first. If so, this unfortunately it is not quiet what I am looking
for. The requirement is,

- check out the src code into any random place on your filesystem
- go to any arbitrary subdir in the src tree and say make

The only good news is that ROOT_SRC/Makefile can have some tell-tell signs
that I am at the top (or ROOT_SRC)

Thanks
Medi



On Thu, Apr 8, 2010 at 2:10 PM, Stephan Beal <[email protected]>wrote:

> On Thu, Apr 8, 2010 at 8:43 PM, Montaseri <[email protected]> wrote:
>
>> include ../../../env.mk
>
>
> In a nutshell, the way i work around that is to put something like this at
> the top of my Makefiles:
>
> include thisdir.make
>
> thisdir.make gets generated by the configure script (or some shell script,
> or whatever), and contains shared vars like:
>
> top_srcdir := relative path to top srcdir from $PWD
>
> That type of thing can be done with only a little bit of scripting. i've
> got some rather involved examples if you'd like to dig around in them.
> Contact me off-list if you like (email addy is at the link below) and i'll
> see what i can extract for you.
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
>
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to