On Thu, Apr 8, 2010 at 8:43 PM, Montaseri <address@hidden>
In a nutshell, the way i work around that is to put something like this at the top of my Makefiles:
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.