Hi Eli,

 

Many thanks for the quick reply!

 

I had a look around in the code and the default include paths are set in
read.c (http://git.savannah.gnu.org/cgit/make.git/tree/read.c#n106). Given
that I am working on a Windows machine, only the current directory ('.')
comes through as default include directory in the standard Make version.
Here some options I can see right now:

 

*       Invoking Make like 'Make -IC:/path/to/make/lib' (as already
discussed)

*       Compile an additional hard coded path (like 'C:/path/to/make/lib')
into Make (running build_w32.bat with some tweaks to use mingw32-gcc instead
of gcc) with

 

-DINCLUDEDIR="\".\",\" C:/path/to/makelib\""

 

*       Calling targets like '$(MAKE) -IC:/path/to/make/lib mytarget' within
the makefile which includes IncludeMe.make (in C:/path/to/make/lib) by using
'-include IncludeMe.make' (where the leading '-' makes Make ignore the
include error in the first run at least).

 

To me the second option appears the most elegant one, but still has the
disadvantage of a hard-coded path. Would it be possible that the default
include path is (1) an environment or (2) a Make variable? If you want me to
file a feature request somewhere, could you please pass on where to do that?

 

Many thanks again,

J.

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

Reply via email to