1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
.include "/etc/mrc.conf"
DAEMONIZER?=svc.daemon
.include "${DAEMONIZER}"
.if defined(AUTOBOOT)
SCRIPTS!=ls *.init *.service
.else
SCRIPTS!=ls *.service
.endif
all: ${SERVICE:S/.init//:S/.service//}
.for file in ${SCRIPTS}
.include "${file}"
.endfor
|
>
>
>
>
>
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
.include "/etc/mrc.conf"
DAEMONIZER?=svc.daemon
.MAKE.JOBS?=2
.SILENT:
.include "${DAEMONIZER}"
.if defined(AUTOBOOT)
SCRIPTS!=ls *.init *.service
.else
SCRIPTS!=ls *.service
DAEMON:
.endif
.MAIN: ${SCRIPTS:S/.init//:S/.service//}
.PHONY: ${SCRIPTS:S/.init//:S/.service//} _daemonize _service
.for file in ${SCRIPTS}
.include "${file}"
.endfor
|