12 |
CERTDIR = ${ETCDIR}/ssl |
CERTDIR = ${ETCDIR}/ssl |
13 |
DRACUTCONFDIR = ${ETCDIR}/dracut.conf.d |
DRACUTCONFDIR = ${ETCDIR}/dracut.conf.d |
14 |
DRACUTMODULESDIR = ${LIBDIR}/dracut/modules.d |
DRACUTMODULESDIR = ${LIBDIR}/dracut/modules.d |
15 |
|
SYSTEMINIT = systemd |
16 |
|
SPLASH = plymouth |
17 |
|
|
18 |
INSTALL = install |
INSTALL = install |
19 |
LN = ln -snf |
LN = ln -snf |
20 |
SED = sed -i |
SED = sed -i |
21 |
PKGCONFIG = pkg-config |
PKGCONFIG = pkg-config |
22 |
|
|
|
SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir systemd) |
|
|
|
|
23 |
GLOBAL_CLASSES = daemon hwdetection sessionauth |
GLOBAL_CLASSES = daemon hwdetection sessionauth |
24 |
CLIENT_CLASSES = boot citrix fluxbox graphic hardware input mage network printing system vnc |
CLIENT_CLASSES = boot citrix fluxbox graphic hardware input mage network printing system vnc |
25 |
|
ifeq ($(SPLASH),plymouth) |
26 |
|
CLIENT_SPLASH_CLASSES = plymouth |
27 |
|
else |
28 |
|
CLIENT_SPLASH_CLASSES = fbsplash |
29 |
|
endif |
30 |
|
ifeq ($(SYSTEMINIT),systemd) |
31 |
|
CLIENT_SYSTEM_CLASSES = systemd |
32 |
|
SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir systemd) |
33 |
|
else |
34 |
|
CLIENT_SYSTEM_CLASSES = sysvinit |
35 |
|
endif |
36 |
|
|
37 |
install: install-client-daemon install-client-services-sysvinit install-client-services-systemd install-dracut-module |
install: install-client-daemon install-client-services-$(SYSTEMINIT) install-dracut-module |
38 |
|
|
39 |
install-client-daemon: |
install-client-daemon: |
40 |
$(INSTALL) -d $(DESTDIR)/$(ETCDIR)/mcore |
$(INSTALL) -d $(DESTDIR)/$(ETCDIR)/mcore |
65 |
daemon/include/$${class}.global.class \ |
daemon/include/$${class}.global.class \ |
66 |
$(DESTDIR)/$(MCLIBDIR)/include/; \ |
$(DESTDIR)/$(MCLIBDIR)/include/; \ |
67 |
done |
done |
68 |
for class in $(CLIENT_CLASSES); \ |
for class in $(CLIENT_CLASSES) $(CLIENT_SPLASH_CLASSES) $(CLIENT_SYSTEM_CLASSES); \ |
69 |
do \ |
do \ |
70 |
$(INSTALL) -m0644 \ |
$(INSTALL) -m0644 \ |
71 |
daemon/client/include/$${class}.client.class \ |
daemon/client/include/$${class}.client.class \ |