Contents of /mcore-src/trunk/mcore-tools/src/sysvinit/Makefile
Parent Directory | Revision Log
Revision 2645 -
(show annotations)
(download)
Fri Oct 9 09:17:48 2015 UTC (8 years, 11 months ago) by niro
File size: 741 byte(s)
Fri Oct 9 09:17:48 2015 UTC (8 years, 11 months ago) by niro
File size: 741 byte(s)
-install control services
1 | |
2 | include ../../Makefile.inc |
3 | |
4 | SYSVRCDDIR = $(SYSCONFDIR)/rc.d |
5 | SYSVINITDDIR = $(SYSRCDDIR)/init.d |
6 | RUNDIR = $(LOCALSTATEDIR)/run |
7 | |
8 | FILES = mcored.rc |
9 | |
10 | SCRIPT_SED_LINES += \ |
11 | -e "s:@@SYSVINITDDIR@@:$(SYSVINITDDIR):g" \ |
12 | -e "s:@@SYSVRCDDIR@@:$(SYSVRCDDIR):g" |
13 | |
14 | all: $(FILES) |
15 | |
16 | install: install-client-services-sysvinit install-control-services-sysvinit |
17 | |
18 | install-client-services-sysvinit: all |
19 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) |
20 | $(INSTALL) -m0755 mcored.rc $(DESTDIR)/$(SYSVINITDDIR)/mcored |
21 | |
22 | install-control-services-sysvinit: all |
23 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) |
24 | $(INSTALL) -m0755 mcore-controld.rc $(DESTDIR)/$(SYSVINITDDIR)/mcore-controld |
25 | |
26 | clean: |
27 | rm -f $(FILES) |
28 | |
29 | .PHONE: install-client-services-sysvinit |
30 | .PHONY: all install clean |