M2 icon indicating copy to clipboard operation
M2 copied to clipboard

'make install' rebuilds

Open DanGrayson opened this issue 6 years ago • 5 comments
trafficstars

After running make, running make install should not rebuild anything.

DanGrayson avatar Aug 08 '19 19:08 DanGrayson

Also, make install PREFIX=/foo/bar should install everything in /foo/bar.

DanGrayson avatar Dec 15 '20 14:12 DanGrayson

Use DESTDIR, which is the standard. CMake does this as well.

mahrud avatar Dec 15 '20 15:12 mahrud

A good guide is here: https://www.gnu.org/prep/standards/standards.pdf

We should implement both DESTDIR and prefix. They have different uses.

DanGrayson avatar Dec 15 '20 17:12 DanGrayson

--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 .

mahrud avatar Dec 15 '20 17:12 mahrud

--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.

DanGrayson avatar Dec 15 '20 18:12 DanGrayson