From 415eab0e6bf97ffa60eac0954fda0fc9dc508dff Mon Sep 17 00:00:00 2001 From: Henrique Borges Date: Wed, 14 Dec 2022 19:42:19 -0300 Subject: [PATCH] Allow specifying custom installation directory --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d97e560..a032444 100644 --- a/Makefile +++ b/Makefile @@ -15,12 +15,12 @@ debug: rdo.c ${CC} ${CFLAGS_DEBUG} rdo.c -o rdo ${LIBS} install: rdo - cp rdo /usr/bin/rdo - chown root:root /usr/bin/rdo - chmod 755 /usr/bin/rdo - chmod u+s /usr/bin/rdo - cp rdo_sample.conf /etc/rdo.conf - chmod 600 /etc/rdo.conf + cp rdo ${DESTDIR}/usr/bin/rdo + chown root:root ${DESTDIR}/usr/bin/rdo + chmod 755 ${DESTDIR}/usr/bin/rdo + chmod u+s ${DESTDIR}/usr/bin/rdo + cp rdo_sample.conf ${DESTDIR}/etc/rdo.conf + chmod 600 ${DESTDIR}/etc/rdo.conf uninstall: rm /usr/bin/rdo