Contents of /mcore-src/trunk/mcore-tools/src/sysvinit/Makefile
Parent Directory | Revision Log
Revision 2724 -
(show annotations)
(download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 9 months ago) by niro
File size: 1068 byte(s)
Mon Dec 21 09:31:33 2015 UTC (8 years, 9 months ago) by niro
File size: 1068 byte(s)
-reworked Makefiles that they really support install-common, install-client and install install-control targets
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-common install-client install-control all |
17 | |
18 | install-common: install-common-services-sysvinit |
19 | |
20 | install-client: install-client-services-sysvinit |
21 | |
22 | install-control: install-control-services-sysvinit |
23 | |
24 | install-common-services-sysvinit: all |
25 | |
26 | install-client-services-sysvinit: all |
27 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) |
28 | $(INSTALL) -m0755 mcored.rc $(DESTDIR)/$(SYSVINITDDIR)/mcored |
29 | |
30 | install-control-services-sysvinit: all |
31 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) |
32 | $(INSTALL) -m0755 mcore-controld.rc $(DESTDIR)/$(SYSVINITDDIR)/mcore-controld |
33 | |
34 | clean: |
35 | rm -f $(FILES) |
36 | |
37 | .PHONY: install-common |
38 | .PHONY: install-client |
39 | .PHONY: install-control |
40 | .PHONY: install-common-services-sysvinit |
41 | .PHONY: install-client-services-sysvinit |
42 | .PHONY: install-control-services-sysvinit |
43 | .PHONY: all install clean |