From a3bfd5aa2c3ecea078ac0262821c3878cbdc8b94 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Thu, 24 Oct 2024 09:50:45 +0200 Subject: [PATCH] Use ${DESTDIR} for config Prepends ${DESTDIR} for config dir creation and config file copying, so its in line with the other artifacts. Makes no sense to be able to install to dir X but config files being created in the system /etc/ dir Signed-off-by: Itxaka --- GNUmakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 66546303..a99e0797 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -31,9 +31,9 @@ clean:: .PHONY: install install: all - mkdir -p /etc/keylime/ - mkdir -p /etc/keylime/agent.conf.d - cp ${CONFFILE} /etc/keylime/agent.conf + mkdir -p ${DESTDIR}/etc/keylime/ + mkdir -p ${DESTDIR}/etc/keylime/agent.conf.d + cp ${CONFFILE} ${DESTDIR}/etc/keylime/agent.conf for f in $(programs); do \ install -D -t ${DESTDIR}/usr/bin "$$f"; \ done