gsandie online notebook

Make install..

Sometimes you may want to change where you install something to with make. Setting the DESTDIR environment variable can achieve this:

$ mkdir /tmp/test_install
$ make install DESTDIR=/tmp/test_install

It will then get installed with any PREFIX you’ve set into the DESTDIR.

When in doubt have a look in the Makefile.