help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment Variable to Customize .INCLUDE_DIRS


From: Afif Elghraoui
Subject: Re: Environment Variable to Customize .INCLUDE_DIRS
Date: Sat, 23 Jan 2016 16:09:56 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

Many thanks for the responses, but there should have been more to my
post than what I originally wrote, since this was an email draft I
started a long time ago.

على الجمعـة 22 كانون الثاني 2016 ‫08:57، كتب Afif Elghraoui:
> 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?
> 

So it looks like the answer to this is currently no.

> 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.
> 

I think adding official support for a search path environment variable
would be a good thing for Make. I think it would help encourage people
to develop and release Make libraries that build on top of each other if
the include search path could be trusted to include all necessary
locations across different sites. It's fair to expect an environment
variable would be maintained since people already do it for PATH,
MANPATH, and such.

Please consider this a feature request-- I originally posted on
help-make because I wanted to make sure that this feature didn't already
exist and I'd missed it in the manual.

Many thanks and regards
Afif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]