[Top][All Lists]

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

Re: how-to Recursive Ascend

From: Montaseri
Subject: Re: how-to Recursive Ascend
Date: Thu, 8 Apr 2010 14:55:47 -0700

Hi Stephan,

Thanks for your input...

In your 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)


On Thu, Apr 8, 2010 at 2:10 PM, Stephan Beal <address@hidden> wrote:
On Thu, Apr 8, 2010 at 8:43 PM, Montaseri <address@hidden> wrote:
include ../../../

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

reply via email to

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