Hi Roy,
We tried to follow the rules from the following GNU ‘standards’:
https://www.gnu.org/prep/standards/html_node/DESTDIR.html
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
So the DESTDIR is a variable prepended to each installed target file, but the prefix is used to construct the default values of several variables like:
libdir, exec_prefix, sysconfdif, datarootdir, mandir etc.
The main difference between the DESTDIR and prefix is that the latter determines where the files will go when installing (e.g. from package) and where the associated files should be looked for. But the DESTDIR variable is for installing to some temporary directory which is not where the package itself will be installed.
Maybe we would need to update the documentation to make it clear.
In case of libraries the libdir is used to provide an install prefix and it is detected automatically in makefiles which location should be used, but you can always overwrite this:
$ make install libdir=/usr/lib
But this will install all libraries in /usr/lib but rest of files would be installed in /usr/local
So the complete command would be:
$ make install prefix=/usr libdir=/usr/lib
And now if you would like to install all files in some other directory you can use the DESTDIR:
$ make install prefix=/usr libdir=/usr/lib DESTDIR=~/buildroot
Regards
Pawel
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pmem/9126694c-85aa-4f2d-8724-b46dff963177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---------------------------------------------------------------------
Intel
Technology Poland sp. z o.o.
ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy Gdańsk
Północ
| VII Wydział Gospodarczy Krajowego Rejestru Sądowego - KRS 101882 | NIP
957-07-52-316 | Kapitał zakładowy 200.000 PLN.
Ta wiadomość wraz z załącznikami jest przeznaczona dla określonego
adresata i może zawierać informacje poufne. W razie przypadkowego otrzymania
tej wiadomości, prosimy o powiadomienie nadawcy oraz trwałe jej usunięcie;
jakiekolwiek przeglądanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). If you are not the intended recipient,
please
contact the sender and delete all copies; any review or distribution by others
is strictly prohibited.