Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support DESTDIR and prefix installation #4

Open
realtime-neil opened this issue Oct 7, 2019 · 1 comment
Open

support DESTDIR and prefix installation #4

realtime-neil opened this issue Oct 7, 2019 · 1 comment
Assignees

Comments

@realtime-neil
Copy link

The Makefile does not support a configurable installation destination. It should be fixed to support both DESTDIR and prefix as documented here:

https://www.gnu.org/prep/standards/html_node/DESTDIR.html

@tprk77 tprk77 self-assigned this Oct 8, 2019
@tprk77
Copy link
Owner

tprk77 commented Oct 8, 2019

The Makefile is mostly just a convenience wrapper around Meson, and by extension Ninja. That is to say, depending on your use-case, it may be best to fallback to the underlying commands.

That said, DESTDIR seems to be working for me. Like I can do this:

~/ttfrm$ DESTDIR=/tmp/ttfrm make install
cd build && ninja install
[0/1] Installing files.
Installing /home/tim/ttfrm/ttfrm/tfrm.hpp to /tmp/ttfrm/usr/local/include/ttfrm
Installing /home/tim/ttfrm/ttfrm/tfrm_tree.hpp to /tmp/ttfrm/usr/local/include/ttfrm
Installing /home/tim/ttfrm/build/meson-private/ttfrm.pc to /tmp/ttfrm/usr/local/lib/x86_64-linux-gnu/pkgconfig

On the other hand, prefix is not working through the Makefile, and I think using it will require using Meson directly, such as:

~/ttfrm$ meson --prefix=/prefix build
...
~/ttfrm$ cd build
~/ttfrm/build$ DESTDIR=/tmp/ttfrm ninja install
...
Installing /home/tim/ttfrm/ttfrm/tfrm.hpp to /tmp/ttfrm/prefix/include/ttfrm
Installing /home/tim/ttfrm/ttfrm/tfrm_tree.hpp to /tmp/ttfrm/prefix/include/ttfrm
Installing /home/tim/ttfrm/build/meson-private/ttfrm.pc to /tmp/ttfrm/prefix/lib/x86_64-linux-gnu/pkgconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants