Contents of /mcore-src/trunk/mcore-tools/src/systemd/Makefile
Parent Directory | Revision Log
Revision 2249 -
(show annotations)
(download)
Mon Jan 13 13:39:05 2014 UTC (10 years, 8 months ago) by niro
File size: 685 byte(s)
Mon Jan 13 13:39:05 2014 UTC (10 years, 8 months ago) by niro
File size: 685 byte(s)
-target -install-client-services-systemd requires all target
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 |
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 | |
22 | clean: |
23 | rm -f $(FILES) |
24 | |
25 | .PHONY: install-client-services-systemd |
26 | .PHONY: all install clean |