From b0fc7947d098b61a6ce05df3e2dea708190204d3 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 31 Jul 2022 13:03:36 +0200 Subject: [PATCH] Add optional Destdir-variable --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fddffba..534a0bd 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,12 @@ default: install install: # Deploy script - cp -f ./event_screensaver ${SCRIPT_PATH} + cp -f ./event_screensaver ${DESTDIR}${SCRIPT_PATH} # Make executeable - chmod +x ${SCRIPT_PATH} + chmod +x ${DESTDIR}${SCRIPT_PATH} # Deploy notifyrc-file - cp ./ksmserver.notifyrc ${KSMSERVER_NOTIFY_CONFIG_PATH} + cp ./ksmserver.notifyrc ${DESTDIR}${KSMSERVER_NOTIFY_CONFIG_PATH} # Reload kwin.. qdbus org.kde.KWin /KWin reconfigure @@ -21,7 +21,7 @@ install: remove: # Remove files.. - rm ${SCRIPT_PATH} ${KSMSERVER_NOTIFY_CONFIG_PATH} + rm ${DESTDIR}${SCRIPT_PATH} ${DESTDIR}${KSMSERVER_NOTIFY_CONFIG_PATH} # Reload kwin.. qdbus org.kde.KWin /KWin reconfigure