M2
M2 copied to clipboard
'make install' rebuilds
After running make, running make install should not rebuild anything.
Also, make install PREFIX=/foo/bar should install everything in /foo/bar.
Use DESTDIR, which is the standard. CMake does this as well.
A good guide is here: https://www.gnu.org/prep/standards/standards.pdf
We should implement both DESTDIR and prefix. They have different uses.
--prefix is an option for configure that already exists and has an effect on the artifacts (ie. its value is used in places). There's nothing to implement. DESTDIR is an environmental variable whose value doesn't affect the artifacts other than moving the root directory somewhere else.
On Tue, Dec 15, 2020 at 11:40 AM Daniel R. Grayson [email protected] wrote:
A good guide is here: https://www.gnu.org/prep/standards/standards.pdf
We should implement both DESTDIR and prefix. They have different uses.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Macaulay2/M2/issues/982#issuecomment-745451082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYAPRUJ3CFGNYC2UJWZXCLSU6NRVANCNFSM4IKNYS5Q .
--prefix is an option for configure that already exists and has an effect on the artifacts (ie. its value is used in places). There's nothing to implement.
There is something: I'd like make prefix=/foo/bar install to work.
DESTDIR is an environmental variable whose value doesn't affect the artifacts other than moving the root directory somewhere else.
Right, but DESTDIR is actually a "make" variable, as in make DESTDIR=/tmp/stage install.