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 > MAKEFLAGS="$MAKEFLAGS -I$path" > done > export MAKEFLAGS But yes, that's the basic idea. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make