On Wed, Feb 8, 2012 at 6:02 AM, Mason <mpeg.b...@free.fr> wrote:
> Is there a simple, easy, natural, etc way to do that?

Unfortunately, no.

> Perhaps some internal MAKE variable, like CURDIR?
> (but CURDIR gives the directory of the main Makefile)
> Or some shell magic?

You might get some useful ideas from https://github.com/boyski/RMCH1
(look for the zip link if not familiar with git). Also,
coincidentally, I just filed an enhancement request
(https://savannah.gnu.org/bugs/index.php?35485) which describes how to
determine the directory of the "current makefile". If you can assume
that these will all be contained underneath a base directory and that
unix path style will be followed, it becomes easy to relativise paths
with subst or patsubst.

You might also want to make use of GMSL (http://gmsl.sourceforge.net/)
which provides a lot of useful macros.

-David Boyce

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to