summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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