Comply with GNU coding standards.

Currently the DESTDIR variable is not used correctly which leads to
bogus RUNPATH entries.

https://www.gnu.org/prep/standards/html_node/DESTDIR.html
This commit is contained in:
David Craven 2016-12-31 16:13:01 +01:00 committed by Palmer Dabbelt
parent 0b85715f43
commit 2f1a8fd5ce
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ enable_stow := @enable_stow@
ifeq ($(enable_stow),yes)
stow_pkg_dir := $(prefix)/pkgs
INSTALLDIR ?= $(DESTDIR)/$(stow_pkg_dir)/$(project_name)-$(project_ver)
INSTALLDIR ?= $(DESTDIR)$(stow_pkg_dir)/$(project_name)-$(project_ver)
else
INSTALLDIR ?= $(DESTDIR)/$(prefix)
INSTALLDIR ?= $(DESTDIR)$(prefix)
endif
install_hdrs_dir := $(INSTALLDIR)/include/$(project_name)