summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-05-29 18:39:23 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-05-29 18:39:23 +0100
commit7075a175aa176edbf57bc396f5571cd836e9879d (patch)
tree440c12f7b54a6093f1a0ef42d4156f0c5e340b66 /Makefile
parent27e91ccadc027a352548386b639aa5b475dedcf7 (diff)
add openrc support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 71e859f..26589a6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ BINDIR ?= /bin
LIBEXECDIR ?= /usr/libexec
SYSCONFDIR ?= /etc
SYSTEMD_UNITDIR ?= $(LIBDIR)/systemd/system
+OPENRC_INITDIR ?= $(SYSCONFDIR)/init.d
all:
for d in $(SUBDIRS); do $(MAKE) -C $$d; done
@@ -19,6 +20,9 @@ install:
for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
install -d $(DESTDIR)/$(LIBEXECDIR)
- install -m 0755 redcorelive.sh $(DESTDIR)/$(LIBEXECDIR)/
+ install -m 0755 redcorelive-systemd.sh $(DESTDIR)/$(LIBEXECDIR)/
+ install -m 0755 redcorelive-openrc.sh $(DESTDIR)/$(LIBEXECDIR)/
install -d $(DESTDIR)/$(SYSTEMD_UNITDIR)/
install -m 0644 redcorelive.service $(DESTDIR)/$(SYSTEMD_UNITDIR)/
+ install -d $(DESTDIR)/$(OPENRC_INITDIR)/
+ install -m 0755 redcorelive.initd $(DESTDIR)/${OPENRC_INITDIR}/redcorelive