[Top][All Lists]

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

Re: Environment Variable to Customize .INCLUDE_DIRS

From: Paul Smith
Subject: Re: Environment Variable to Customize .INCLUDE_DIRS
Date: Wed, 25 May 2016 17:29:44 -0400

On Wed, 2016-05-25 at 11:20 -0700, Afif Elghraoui wrote:
> 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

That is not valid shell syntax, plus the quoting is not ideal.  You want
something like:

> for path in "$HOME/.local/include" /other/include
> do
> done
> export MAKEFLAGS

But yes, that's the basic idea.

reply via email to

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