Differences From
Artifact [7ada1edf35]:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
-
+
|
.include "defaults.mk"
.include "order.mk"
.include "/etc/mrc.mk"
.export
.MAKE.JOBS?=1
.MAKE.JOBS?= ${NCPU}
.if !empty(.MAKE.MODE:Mcompat)
.error "ERROR: MRC doesn't support "compat" mode."
.endif
OTHER_TARGETS:=
.include "starter.mk"
|
︙ | | |
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
+
|
test:
echo Empty target.
# Create service targets
.for service in ${SCRIPTS}
. include "${service}.service.mk"
# Set DAEMON defaults
DAEMON_${service}_CWD?= /
DAEMON_${service}_ENABLE?= no
DAEMON_${service}_USER?= root
DAEMON_${service}_GROUP?= wheel
. if !defined(DAEMON_${service}_COMMAND)
. warning MRC> Service [${service}] defunct: no COMMAND specified
. else
# Service creation targets
. if !target(${service})
. if !target(${service})
${service}: ${SERVICE_EXIT} ${_SERVICE}
. endif
. endif
# Service status targets
. if !target(${service}_status)
. if !target(${service}_status)
${service}_status: ${_SERVICE_STATUS}
. endif
. endif
# Service exit targets
. if !target(${service}_exit)
. if !target(${service}_exit)
${service}_exit: ${_SERVICE_EXIT} ${DAEMON_${service}_DEPS:S/$/_exit/}
. endif
. endif
DAEMON_EXIT: ${service}_exit
. endif
.endfor
.MAIN: ${SCRIPTS} ${TARGETS}
.PHONY: ${SCRIPTS} ${OTHER_TARGETS} ${TARGETS}
.undef OTHER_TARGETS SCRIPTS TARGETS
|
︙ | | |