Based on Paul Smith's comment in #47880 [1], there's a pretty simple
solution to this problem. Adding something like the following to
~/.bashrc would do the trick:
MAKELIBS="$HOME/.local/include /other/include"
for path in $MAKELIBS
do
MAKEFLAGS+="-I$path"
done
export MAKEFLAGS
regards
Afif
1. http://savannah.gnu.org/bugs/?47880#comment1
On 01/22/2016 08:57 AM, Afif Elghraoui wrote:
Hello,
I'm looking for a way to be able to store custom makefile rules in
special folders.
I see that the Makefile variable .INCLUDE_DIRS is set to "/usr/include
/usr/local/include /usr/include" on my machine by default, but is
there an environment variable I can set to add different directories
(like $HOME/include) in the same
way that can be done for CPATH, LIBRARY_PATH, and MANPATH for other
things?
I know that i can also pass in a custom include path on the command
line, but I would like to have some files with generic rules that I
can include without any special command line invocation or hardcoding
the absolute path.
Thanks and regards
Afif
_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make