On Mon, Jan 18, 2016 at 01:38:04PM +0100, Peter Lemenkov wrote:
But why do you need it? Why doesn't e.g.
make DESTDIR=/opt/bla
work for you as-is? Or do you need those vars to be passed in via the environment?
Unfortunately this DESTDIR trick won't work. Explicitly stated variables from the Makefile itself have preference over the environment variables unless they stated with "?=". At least this is how GNU make works.
But this is *not* an environment variable!
Yes, sorry. Anyway we can't override Makefile-variables that way unless we allow it.
Why not? Manual says to do just this; and I tested it just now to make sure I am not imagining things, and it works fine. So what is unusual in your setup?
Segher