DESTDIR.rst 681 B

12345678910111213141516171819
  1. DESTDIR
  2. -------
  3. On UNIX one can use the ``DESTDIR`` mechanism in order to relocate the
  4. whole installation. ``DESTDIR`` means DESTination DIRectory. It is
  5. commonly used by makefile users in order to install software at
  6. non-default location. It is usually invoked like this:
  7. ::
  8. make DESTDIR=/home/john install
  9. which will install the concerned software using the installation
  10. prefix, e.g. ``/usr/local`` prepended with the ``DESTDIR`` value which
  11. finally gives ``/home/john/usr/local``.
  12. WARNING: ``DESTDIR`` may not be used on Windows because installation
  13. prefix usually contains a drive letter like in ``C:/Program Files``
  14. which cannot be prepended with some other prefix.