Annotation of /mcore-src/trunk/mcore-tools/src/systemd/Makefile
Parent Directory | Revision Log
Revision 2248 -
(hide annotations)
(download)
Mon Jan 13 13:37:39 2014 UTC (10 years, 8 months ago) by niro
File size: 681 byte(s)
Mon Jan 13 13:37:39 2014 UTC (10 years, 8 months ago) by niro
File size: 681 byte(s)
-add PHONY target install-client-services-systemd
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 | |||
8 | FILES = mcored.service | ||
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: | ||
19 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR) | ||
20 | $(INSTALL) -m0644 mcored.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR) | ||
21 | |||
22 | clean: | ||
23 | rm -f $(FILES) | ||
24 | |||
25 | niro | 2248 | .PHONY: install-client-services-systemd |
26 | niro | 2247 | .PHONY: all install clean |