Contents of /mcore-src/trunk/mcore-tools/src/systemd/Makefile
Parent Directory | Revision Log
Revision 2342 -
(show annotations)
(download)
Mon Jul 14 11:48:56 2014 UTC (10 years, 2 months ago) by niro
File size: 847 byte(s)
Mon Jul 14 11:48:56 2014 UTC (10 years, 2 months ago) by niro
File size: 847 byte(s)
-fixed a typo
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)/$(SYSCONFDIR)/tmpfiles.d/mcored.conf |
23 | |
24 | clean: |
25 | rm -f $(FILES) |
26 | |
27 | .PHONY: install-client-services-systemd |
28 | .PHONY: all install clean |