> 
>   i want to clean all that up and have make use an include-dir path
> and be able to change all of the above to, of course, the simpler:
> 
>   include someutil.mak

Why not just use:

include $(call magic,someutil.mak)

Where magic is a macro that based on a variabes passed
or something decide on the directory to try.

Something like this mockup for example:
magic = $(if $(wildcard $(mydir)/$1),$(mydir)/$1, \
            $(if $(wildcard $(anotherdir)/$1),$(anotherdir)/$1,NOTFOUND))

mydir could be set recursively or could be the dir of Makefile or
could be absolute.
In other words the possibilities are many to fidn the dir.

        Sam


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to