Comply with GNU coding standards.
authorDavid Craven <david@craven.ch>
Sat, 31 Dec 2016 15:24:42 +0000 (16:24 +0100)
committerPalmer Dabbelt <palmer@dabbelt.com>
Fri, 6 Jan 2017 18:31:21 +0000 (10:31 -0800)
Currently the DESTDIR variable is not used correctly which leads to
bogus RUNPATH entries.

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

Makefile.in

index e8c80dd4b331b785fee805d6157fcd7aef39f58e..01af91bf6f17c74d07fe5a371dd1cfdfcea16f66 100644 (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)