Closed adrelanos closed 7 years ago
Rusty Bird:
?=
is a GNUism, right?
No idea. Never used a non-GNU make.
I don't know how well that would work with other
make
implementations. Why not use the conventional way to override Makefile variables:make PREFIX=/usr DESTDIR=/tmp/corridor install install-systemd
Because that doesn't work without ?=. Didn't work for me. Hence I suggested the ?=. Looks like like just = sets the variable no matter what the environment has set.
make PREFIX=/usr DESTDIR=/tmp/corridor install install-systemd
Because that doesn't work without ?=
It definitely should. You probably have a mismatch between the PREFIX
you are passing (or not) to one of the build targets vs. one of the install targets. (If it's a problem during testing, the build directory might be dirty.)
My mistake. It does.
?=
is a GNUism, right? I don't know how well that would work with othermake
implementations. Why not use the conventional way to override Makefile variables: