Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/systemd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2797 - (hide annotations) (download)
Mon Jun 20 11:49:40 2016 UTC (7 years, 10 months ago) by niro
File size: 2137 byte(s)
-install mcore-user.tmpfilesd.conf and factory-xinitrc for the client only
1 niro 2247
2     include ../../Makefile.inc
3    
4     SYSTEMDSYSTEMUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd)
5     SYSTEMDSYSTEMCONFDIR = $(shell $(PKGCONFIG) --variable=systemdsystemconfdir systemd)
6     RUNDIR = /run
7 niro 2765 FACTORYDIR = $(DATADIR)/factory
8 niro 2247
9 niro 2765 FILES = mcored.service mcore-controld.service mcore-register-client.service mcored.tmpfilesd.conf mcore-request-configuration.service mcore-configd.tmpfilesd.conf mcore-user.tmpfilesd.conf factory-xinitrc
10 niro 2247
11     SCRIPT_SED_LINES += \
12     -e "s:@@SYSTEMDSYSTEMUNITDIR@@:$(SYSTEMDSYSTEMUNITDIR):g" \
13     -e "s:@@SYSTEMDSYSTEMCONFDIR@@:$(SYSTEMDSYSTEMCONFDIR):g"
14    
15     all: $(FILES)
16    
17 niro 2724 install: install-common install-client install-control all
18 niro 2247
19 niro 2724 install-common: install-common-services-systemd
20    
21     install-client: install-client-services-systemd
22    
23     install-control: install-control-services-systemd
24    
25     install-common-services-systemd: all
26     $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d
27     $(INSTALL) -m0644 mcored.tmpfilesd.conf $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d/mcored.conf
28 niro 2765 $(INSTALL) -m0644 mcore-configd.tmpfilesd.conf $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d/mcore-configd.conf
29 niro 2797
30     install-client-services-systemd: all
31     $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d
32 niro 2765 $(INSTALL) -m0644 mcore-user.tmpfilesd.conf $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d/mcore-user.conf
33 niro 2790 $(INSTALL) -d $(DESTDIR)/$(FACTORYDIR)/$(MCORE_UNPRIV_HOME)
34     $(INSTALL) -m0644 factory-xinitrc $(DESTDIR)/$(FACTORYDIR)/$(MCORE_UNPRIV_HOME)/.xinitrc
35 niro 2247 $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
36     $(INSTALL) -m0644 mcored.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
37 niro 2450 $(INSTALL) -m0644 mcore-register-client.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
38 niro 2591 $(INSTALL) -m0644 mcore-request-configuration.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
39 niro 2247
40 niro 2450 install-control-services-systemd: all
41     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
42     $(INSTALL) -m0644 mcore-controld.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
43    
44 niro 2247 clean:
45     rm -f $(FILES)
46    
47 niro 2724 .PHONY: install-common
48     .PHONY: install-client
49     .PHONY: install-control
50     .PHONY: install-common-services-systemd
51 niro 2248 .PHONY: install-client-services-systemd
52 niro 2450 .PHONY: install-control-services-systemd
53 niro 2247 .PHONY: all install clean