Lines of
Makefile
from check-in 17041521b1
that are changed by the sequence of edits moving toward
check-in 295630c60d:
1: .include "/etc/mrc.conf"
2: .export
3:
4: OTHER_TARGETS:=_service _earlyservice
5: STARTER?=svc
6:
7: .for starter in ${:!find /etc/mrc -name '*.starter.mk'!:S/\/etc\/mrc\///}
8: .include "${starter}"
9: .endfor
10:
11: .if !target(_service) || !target(_earlyservice)
12: .error No service handler defined.
13: .endif
14:
15: #.MAKE.JOBS?=2
16: .SILENT:
17:
18: install:
19: install rc /etc/rc
20:
21: .if defined(AUTOBOOT)
17041521b1 2019-10-23 22: SCRIPTS=${:!find /etc/mrc -name '*.init.mk' -o -name '*.service.mk'!:S/\/etc\/mrc\///}
17041521b1 2019-10-23 23:
24: .ERROR:
25: : ERROR: ABORTING BOOT (sending SIGTERM to parent)!
26: : target ${.ERROR_TARGET} failed to execute:
27: : ${.ERROR_CMD}
28: kill 1
29: .else
17041521b1 2019-10-23 30: SCRIPTS=${:!find /etc/mrc -name '*.service.mk'!:S/\/etc\/mrc\///}
17041521b1 2019-10-23 31:
32: DAEMON: NETWORK SERVERS
33:
34: LOGIN: DAEMON
35:
36: NETWORK:
37:
38: SERVERS:
39:
40: SERVICE:
41: .endif
42:
43: test:
44: echo Empty target.
45:
46: TARGETS:=${SCRIPTS:S/.init.mk//:S/.service.mk//}
47:
17041521b1 2019-10-23 48: .MAIN: ${TARGETS}
17041521b1 2019-10-23 49:
17041521b1 2019-10-23 50: .PHONY: ${TARGETS} ${OTHER_TARGETS}
17041521b1 2019-10-23 51:
17041521b1 2019-10-23 52: .undef TARGETS OTHER_TARGETS
17041521b1 2019-10-23 53:
54: .for file in ${SCRIPTS}
55: #.info ${file}
56: .include "${file}"
57: .endfor
58:
17041521b1 2019-10-23 59: .undef SCRIPTS
60:
61: ENABLED=${:!env!:C/=.*//:M*_ENABLE}
62:
63: .for var in ${ENABLED}
64: .if !empty(${var}:tl:Mno)
65: #.info ${var}
66: .undef ${var}
67: .endif
68: .endfor
69:
70: .undef ENABLED
71: .unexport-env
72: .export
73: #.info ${:!env!}