diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -3,12 +3,14 @@ PREFIX=/usr install: - @install -Dm644 inittab ${DESTDIR}/etc/inittab - @install -Dm755 rc.boot ${DESTDIR}${PREFIX}/lib/init/rc.boot - @install -Dm755 rc.shutdown ${DESTDIR}${PREFIX}/lib/init/rc.shutdown + mkdir -p ${DESTDIR}/etc + sed 's#PREFIX#{PREFIX}#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 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}/etc/inittab + rm -f ${DESTDIR}${PREFIX}/lib/init/rc.boot + rm -f ${DESTDIR}${PREFIX}/lib/init/rc.shutdown |