Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2341 - (show annotations) (download)
Mon Jul 14 11:47:32 2014 UTC (9 years, 9 months ago) by niro
File size: 857 byte(s)
-added tmpfiles.d file for mcored to create /var/lib/mcored
1
2 include ../../Makefile.inc
3
4 SYSTEMDSYSTEMUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd)
5 SYSTEMDSYSTEMCONFDIR = $(shell $(PKGCONFIG) --variable=systemdsystemconfdir systemd)
6 RUNDIR = /run
7
8 FILES = mcored.service mcored.tmpfilesd.conf
9
10 SCRIPT_SED_LINES += \
11 -e "s:@@SYSTEMDSYSTEMUNITDIR@@:$(SYSTEMDSYSTEMUNITDIR):g" \
12 -e "s:@@SYSTEMDSYSTEMCONFDIR@@:$(SYSTEMDSYSTEMCONFDIR):g"
13
14 all: $(FILES)
15
16 install: install-client-services-systemd
17
18 install-client-services-systemd: all
19 $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
20 $(INSTALL) -m0644 mcored.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
21 $(INSTALL) -d $(DESTDIR)/$(SYSCONFDIR)/tmpfiles.d
22 $(INSTALL) -m0644 mcored.tmpfilesd.conf $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)/tmpfiles.d/mcored.conf
23
24 clean:
25 rm -f $(FILES)
26
27 .PHONY: install-client-services-systemd
28 .PHONY: all install clean