simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

commit 99f4d01553f7b34240b4f2c7de572bb1c8e12a3d
parent fd6f08f01639107f92737e21a7fd7b1fc7b6c213
Author: depsterr <depsterr@protonmail.com>
Date:   Sun, 31 May 2020 21:43:43 +0200

added install target to makefile

Diffstat:
Minitscripts/Makefile | 17++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/initscripts/Makefile b/initscripts/Makefile @@ -1,11 +1,18 @@ CC=c99 +DESTDIR=/usr/lib/init +INIT=rc.init +SHUTDOWN=rc.shutdown -default: rc.init rc.shutdown +default: ${INIT} ${SHUTDOWN} install: default + mkdir -p ${DESTDIR} + cp ${INIT} ${SHUTDOWN} ${DESTDIR} + chmod 755 ${DESTDIR}/${INIT} + chmod 755 ${DESTDIR}/${INIT} -rc.init: init.c util.c - $(CC) $^ -o $@ +${INIT}: init.c util.c + ${CC} $^ -o $@ -rc.shutdown: shutdown.c util.c - $(CC) $^ -o $@ +${SHUTDOWN}: shutdown.c util.c + ${CC} $^ -o $@