DESTDIR.rst 707 B

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