DESTDIR.rst 731 B

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