aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic
diff options
context:
space:
mode:
authorJanne Kajovuori <janne.kajovuori@nokia.com>2017-04-28 10:29:39 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-05-02 18:03:25 +0300
commitf05a0abd5386dc953b8a3eb30b6f6b8937be08cc (patch)
treea104b52c3bc6ec7f67b862f753a9f4e115008107 /platform/linux-generic
parent2520efadae74322d9a61c7e306246518a8396b6f (diff)
linux-generic: makefile: fix staged install support
install-data-hook tries to create the symlink with incorrect paths when a staged install is performed with "make DESTDIR=<path> install". This issue can be fixed by prepending the paths with $(DESTDIR), which provides correct path to the staging area. Signed-off-by: Janne Kajovuori <janne.kajovuori@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r--platform/linux-generic/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am
index 545291518..69fdf8b91 100644
--- a/platform/linux-generic/Makefile.am
+++ b/platform/linux-generic/Makefile.am
@@ -226,9 +226,9 @@ endif
# Create symlink for ABI header files. Application does not need to use the arch
# specific include path for installed files.
install-data-hook:
- if [ -h $(prefix)/include/odp/api/abi ]; then \
+ if [ -h $(DESTDIR)$(prefix)/include/odp/api/abi ]; then \
: ; \
else \
- $(LN_S) -rf $(prefix)/include/odp/arch/@ARCH_ABI@/odp/api/abi \
- $(prefix)/include/odp/api/abi; \
+ $(LN_S) -rf $(DESTDIR)$(prefix)/include/odp/arch/@ARCH_ABI@/odp/api/abi \
+ $(DESTDIR)$(prefix)/include/odp/api/abi; \
fi