aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-27 11:09:06 +0300
committerCem Keylan <cem@ckyln.com>2019-12-27 11:09:06 +0300
commit2b373e39439e0e53fd20a91671fc433e5212c967 (patch)
treeb886af4559fd995e1b0461f175f7532efdf9bdb4 /Makefile
parentfbe0d8a6ad6983d58bd3768d749e0a773737197d (diff)
downloadinit-2b373e39439e0e53fd20a91671fc433e5212c967.tar.gz
makefile: updated to reflect installation changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files 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