aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-18 21:04:42 +0300
committerCem Keylan <cem@ckyln.com>2019-12-18 21:04:42 +0300
commit54d7bde90161b3e01a5e15260d08e79f39096fec (patch)
tree115c5be853dc5a3be418c75dc4d9d5f3095a874c
parent758d2e63839218d68b1a78a9571a263f58640a2d (diff)
downloadinit-54d7bde90161b3e01a5e15260d08e79f39096fec.tar.gz
add makefile
-rw-r--r--Makefile14
-rw-r--r--inittab (renamed from etc/inittab)0
-rwxr-xr-xrc.boot (renamed from lib/init/rc.boot)0
-rwxr-xr-xrc.shutdown (renamed from lib/init/rc.shutdown)0
4 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..41eacf1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+# See license for licensing details
+
+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
+
+uninstall:
+ @rm -f ${DESTDIR}/etc/inittab
+ @rm -f ${DESTDIR}${PREFIX}/lib/init/rc.boot
+ @rm -f ${DESTDIR}${PREFIX}/lib/init/rc.shutdown
+
diff --git a/etc/inittab b/inittab
index 2cd998c..2cd998c 100644
--- a/etc/inittab
+++ b/inittab
diff --git a/lib/init/rc.boot b/rc.boot
index b5b8782..b5b8782 100755
--- a/lib/init/rc.boot
+++ b/rc.boot
diff --git a/lib/init/rc.shutdown b/rc.shutdown
index 9dba627..9dba627 100755
--- a/lib/init/rc.shutdown
+++ b/rc.shutdown