help-make
[Top][All Lists]
Advanced

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

Re: how-to Recursive Ascend


From: Stephan Beal
Subject: Re: how-to Recursive Ascend
Date: Thu, 8 Apr 2010 23:10:50 +0200

On Thu, Apr 8, 2010 at 8:43 PM, Montaseri <address@hidden> 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/


reply via email to

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