From 62a0966666dc541931f7bf814d29b39cab0035fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= Date: Sat, 27 Feb 2016 15:53:37 +0200 Subject: [PATCH] buildsystem: honor $DESTDIR in install-data-hook Closes #150 --- Makefile.am | 2 +- Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index ec6da0d65..78fb7b562 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,4 +32,4 @@ include/serno.h: @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h install-data-hook: - test -d ${logdir} || mkdir -p ${logdir} + test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir} diff --git a/Makefile.in b/Makefile.in index 2a3b06562..df8eaa278 100644 --- a/Makefile.in +++ b/Makefile.in @@ -901,7 +901,7 @@ include/serno.h: @[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h install-data-hook: - test -d ${logdir} || mkdir -p ${logdir} + test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir} # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded.