diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-16 16:29:57 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-16 16:29:57 +0300 |
commit | 3c37be465a1f30aa040a81714e05034d95cf953a (patch) | |
tree | 4b796f06ff7ed5144373f2d7a7dc84c1f3db247a | |
parent | e2f77846415e2f07c33073695c119efe1340de65 (diff) | |
download | init-3c37be465a1f30aa040a81714e05034d95cf953a.tar.gz |
Makefile: use cp instead of install
-rw-r--r-- | Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -3,31 +3,31 @@ PREFIX = /usr INITDIR = ${PREFIX}/lib/init BINDIR = ${PREFIX}/bin +CONFDIR = /etc/init CC = cc all: bin/shalt -bin/shalt: +bin/shalt: bin/shalt.c ${CC} -o bin/shalt bin/shalt.c clean: rm -f bin/shalt install: bin/shalt - mkdir -p ${DESTDIR}/etc - install -Dm755 -t ${DESTDIR}${BINDIR} bin/shalt - install -Dm644 rc.conf ${DESTDIR}/etc/init/rc.conf - install -Dm644 rc.lib ${DESTDIR}${INITDIR}/rc.lib - install -Dm644 -t ${DESTDIR}/etc/init/ contrib/getty.boot contrib/runit.boot - sed 's#INITDIR#${INITDIR}#g' < rc.boot > ${DESTDIR}${INITDIR}/rc.boot - sed 's#INITDIR#${INITDIR}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown + mkdir -p ${DESTDIR}${CONFDIR} ${DESTDIR}${INITDIR} ${DESTDIR}${BINDIR} + cp bin/shalt ${DESTDIR}${BINDIR}/shalt + chmod 755 ${DESTDIR}${BINDIR}/shalt + cp rc.lib rc.boot rc.shutdown ${DESTDIR}${INITDIR} chmod 755 ${DESTDIR}${INITDIR}/rc.boot ${DESTDIR}${INITDIR}/rc.shutdown - install -Dm644 README ${DESTDIR}${INITDIR}/README + cp rc.conf contrib/runit.boot contrib/getty.boot ${DESTDIR}${CONFDIR} + chmod 644 ${DESTDIR}${CONFDIR}/rc.conf ${DESTDIR}${CONFDIR}/runit.boot \ + ${DESTDIR}${CONFDIR}/getty.boot uninstall: rm -f ${DESTDIR}${BINDIR}/shalt - rm -f ${DESTDIR}/etc/init/rc.conf - rm -f ${DESTDIR}/etc/init/getty.boot ${DESTDIR}/etc/init/runit.boot + rm -f ${DESTDIR}${CONFDIR}/rc.conf + rm -f ${DESTDIR}${CONFDIR}/getty.boot ${DESTDIR}${CONFDIR}/runit.boot rm -f ${DESTDIR}${INITDIR}/rc.boot rm -f ${DESTDIR}${INITDIR}/rc.shutdown rm -f ${DESTDIR}${INITDIR}/rc.lib |