> Hello,
> 
> Using GNU 'make' in various unusual ways, I have discovered a thing that
> seemed a bit odd to me at first. 
> 
> If I want to access, from inside a Makefile, the directories which are
> going to be searched for included makefiles (via the 'include'
> directive), I may look at the built-in macro MAKEFLAGS or MFLAGS. Is
> there any other possibility that I missed in the documentation? It would
> be cool if there was a macro like "MAKEDIRS" that could be checked. 

the directories that are searched are a fixed sheme so you can put together
your search list by adding the paths up

 * anything you specified with -l and --include-dir
   if it start with a slash - its an absolute path 
   else prepend the current directory (if the result exists)
 * standard search paths
   /usr/gnu/include
   /usr/include
   /usr/local/include
   PREFIX/include

so if you put all your -l and --include-dir into defined variables then 
add the standard paths you have your search path together and don't need 
to extract it from the MFLAGS or MAKEFLAGS. 

hofrat


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to