about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-04-26 09:28:15 +0200
committerJuan RP <xtraeme@gmail.com>2014-04-26 09:29:39 +0200
commit7aecf46ec589a5bc49ae2392137bcd0e7468dd08 (patch)
tree2164dbf05eea99348d6a0bf893b9fd218bc9ee83 /Makefile
parent72c31feddc31ca0e9f5311a3133d26eef69de971 (diff)
downloadrunit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.tar.gz
runit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.tar.xz
runit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.zip
Add halt/pause utils from ignite.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index caabf57..e6c8527 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,17 @@
 SCRIPTS=	1 2 3 ctrlaltdel
 
+all:
+	$(CC) $(CFLAGS) halt.c -o halt
+	$(CC) $(CFLAGS) pause.c -o pause
+
 install:
+	install -d ${DESTDIR}/${PREFIX}/bin
+	install -m755 halt ${DESTDIR}/${PREFIX}/bin
+	install -m755 pause ${DESTDIR}/${PREFIX}/bin
+	ln -s halt ${DESTDIR}/${PREFIX}/bin/poweroff
+	ln -s halt ${DESTDIR}/${PREFIX}/bin/reboot
+	install -d ${DESTDIR}/${PREFIX}/share/man/man1
+	install -m644 pause.1 ${DESTDIR}/${PREFIX}/share/man/man1
 	install -d ${DESTDIR}/etc/sv
 	install -d ${DESTDIR}/etc/runit/runsvdir
 	install -m755 ${SCRIPTS} ${DESTDIR}/etc/runit