From 2b373e39439e0e53fd20a91671fc433e5212c967 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 27 Dec 2019 11:09:06 +0300 Subject: makefile: updated to reflect installation changes --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4efb010..2cb7fec 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,21 @@ # See license for licensing details PREFIX=/usr +INITDIR=${PREFIX}/lib/init install: mkdir -p ${DESTDIR}/etc - sed 's#PREFIX#{PREFIX}#g' < inittab > ${DESTDIR}/etc/inittab + sed 's#INITDIR#${INITDIR}#g' < inittab > ${DESTDIR}/etc/inittab chmod 644 ${DESTDIR}/etc/inittab - install -Dm755 rc.boot ${DESTDIR}${PREFIX}/lib/init/rc.boot - install -Dm755 rc.shutdown ${DESTDIR}${PREFIX}/lib/init/rc.shutdown + install -Dm644 rc.conf ${DESTDIR}${INITDIR}/rc.conf + sed 's#PREFIX#${PREFIX}#g' < rc.boot > ${DESTDIR}${INITDIR}/rc.boot + sed 's#PREFIX#${PREFIX}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown + chmod 755 ${DESTDIR}${INITDIR}/rc.boot + chmod 755 ${DESTDIR}${INITDIR}/rc.shutdown uninstall: rm -f ${DESTDIR}/etc/inittab - rm -f ${DESTDIR}${PREFIX}/lib/init/rc.boot - rm -f ${DESTDIR}${PREFIX}/lib/init/rc.shutdown + rm -f ${DESTDIR}${INITDIR}/rc.conf + rm -f ${DESTDIR}${INITDIR}/rc.boot + rm -f ${DESTDIR}${INITDIR}/rc.shutdown -- cgit v1.2.3