Annotation of /mcore-src/trunk/mcore-tools/src/sysvinit/Makefile
Parent Directory | Revision Log
Revision 2724 -
(hide annotations)
(download)
Mon Dec 21 09:31:33 2015 UTC (8 years, 4 months ago) by niro
File size: 1068 byte(s)
Mon Dec 21 09:31:33 2015 UTC (8 years, 4 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 | niro | 2250 | |
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 | niro | 2724 | install: install-common install-client install-control all |
17 | niro | 2250 | |
18 | niro | 2724 | 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 | niro | 2250 | install-client-services-sysvinit: all |
27 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) | ||
28 | $(INSTALL) -m0755 mcored.rc $(DESTDIR)/$(SYSVINITDDIR)/mcored | ||
29 | |||
30 | niro | 2645 | install-control-services-sysvinit: all |
31 | $(INSTALL) -d $(DESTDIR)/$(SYSVINITDDIR) | ||
32 | $(INSTALL) -m0755 mcore-controld.rc $(DESTDIR)/$(SYSVINITDDIR)/mcore-controld | ||
33 | |||
34 | niro | 2250 | clean: |
35 | rm -f $(FILES) | ||
36 | |||
37 | niro | 2724 | .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 | niro | 2250 | .PHONY: all install clean |