blob: 26589a6aca5fa2adc131f2de59040ebebbd077a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
SUBDIRS =
DESTDIR =
UBINDIR ?= /usr/bin
LIBDIR ?= /usr/lib
SBINDIR ?= /sbin
USBINDIR ?= /usr/sbin
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
clean:
for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
install:
for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
install -d $(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
|