Makefile: respect DESTDIR in install destinations
See https://www.gnu.org/prep/standards/html_node/DESTDIR.html.
This allows build systems such as ptxdist to 'make install' to a location other than /usr.
Signed-off-by: Bastian Krause [email protected]
In January 2019, I have changed beep to prioritize the kernel's new speaker API which does not require setuid-root or sudo-root, fixed the bugs from #11 and others, and published the updated code on https://github.com/spkr-beep/beep where release 1.4.9 is current. A number of distributions are using the new code base at this time: Arch Linux, Debian unstable, Fedora 28 and later, Ubuntu whatever-is-tracking-Debian-unstable, OpenSUSE appears to be working on it, etc.
I suggest you update to beep-1.4 or later which should already implement proper handling of DESTDIR.
If you run into issues there, report your issue over at https://github.com/spkr-beep/beep/issues so I can take a look.