diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-27 11:09:06 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-27 11:09:06 +0300 |
commit | 2b373e39439e0e53fd20a91671fc433e5212c967 (patch) | |
tree | b886af4559fd995e1b0461f175f7532efdf9bdb4 /Makefile | |
parent | fbe0d8a6ad6983d58bd3768d749e0a773737197d (diff) | |
download | init-2b373e39439e0e53fd20a91671fc433e5212c967.tar.gz |
makefile: updated to reflect installation changes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |