Origin for each line in
Makefile
from check-in 4361bde8b2:
88e0b45310 2019-10-23 1: .include "defaults.mk"
5f60bcc749 2019-10-23 2: .include "/etc/mrc.mk"
8f80b79392 2019-10-20 3: .export
8f80b79392 2019-10-20 4:
ebafd89015 2019-10-21 5: OTHER_TARGETS:=_service _earlyservice
ebafd89015 2019-10-21 6: STARTER?=svc
716b0393df 2019-10-21 7:
ebafd89015 2019-10-21 8: .for starter in ${:!find /etc/mrc -name '*.starter.mk'!:S/\/etc\/mrc\///}
ebafd89015 2019-10-21 9: .include "${starter}"
716b0393df 2019-10-21 10: .endfor
47c6cc1171 2019-10-20 11:
ebafd89015 2019-10-21 12: .if !target(_service) || !target(_earlyservice)
ebafd89015 2019-10-21 13: .error No service handler defined.
716b0393df 2019-10-21 14: .endif
716b0393df 2019-10-21 15:
7a1e7f4a58 2019-10-21 16: .SILENT:
7a1e7f4a58 2019-10-21 17:
17041521b1 2019-10-23 18: install:
17041521b1 2019-10-23 19: install rc /etc/rc
17041521b1 2019-10-23 20:
295630c60d 2019-10-23 21: SCRIPTS=${:!find /etc/mrc -name '*.service.mk'!:S/\/etc\/mrc\///}
4361bde8b2 2022-05-29 22: TARGETS:=${SCRIPTS:S/.service.mk//}
295630c60d 2019-10-23 23:
5fb1968943 2019-10-19 24: .if defined(AUTOBOOT)
d724289db9 2020-04-10 25: .include "init.mk"
d724289db9 2020-04-10 26:
f95fc3334e 2019-10-20 27: .ERROR:
f95fc3334e 2019-10-20 28: : ERROR: ABORTING BOOT (sending SIGTERM to parent)!
f95fc3334e 2019-10-20 29: : target ${.ERROR_TARGET} failed to execute:
f95fc3334e 2019-10-20 30: : ${.ERROR_CMD}
f95fc3334e 2019-10-20 31: kill 1
5fb1968943 2019-10-19 32: .else
716b0393df 2019-10-21 33: DAEMON: NETWORK SERVERS
716b0393df 2019-10-21 34: LOGIN: DAEMON
716b0393df 2019-10-21 35: NETWORK:
716b0393df 2019-10-21 36: SERVERS:
67838bd249 2019-10-21 37: SERVICE:
d724289db9 2020-04-10 38:
d724289db9 2020-04-10 39: mount:
d724289db9 2020-04-10 40: root:
d724289db9 2020-04-10 41: netif:
d724289db9 2020-04-10 42: newsyslog:
67838bd249 2019-10-21 43: .endif
716b0393df 2019-10-21 44:
67838bd249 2019-10-21 45: test:
67838bd249 2019-10-21 46: echo Empty target.
5062c9b6fc 2019-10-19 47:
295630c60d 2019-10-23 48: .for file in ${SCRIPTS}
295630c60d 2019-10-23 49: #.info ${file}
295630c60d 2019-10-23 50: .include "${file}"
bc20f9df9f 2019-10-24 51: .if !target(${file:S/.service.mk//})
bc20f9df9f 2019-10-24 52: ${file:S/.service.mk//}: _service
e71c4b0c63 2020-05-26 53: .endif
e71c4b0c63 2020-05-26 54: .if !target(${file:S/.service.mk/_status/})
e71c4b0c63 2020-05-26 55: ${file:S/.service.mk/_status/}: _status
e71c4b0c63 2020-05-26 56: .endif
e71c4b0c63 2020-05-26 57: .if !target(${file:S/.service.mk/_restart/})
e71c4b0c63 2020-05-26 58: ${file:S/.service.mk/_restart/}: _restart
d724289db9 2020-04-10 59: .endif
295630c60d 2019-10-23 60: .endfor
f95fc3334e 2019-10-20 61:
f95fc3334e 2019-10-20 62: .MAIN: ${TARGETS}
f95fc3334e 2019-10-20 63:
716b0393df 2019-10-21 64: .PHONY: ${TARGETS} ${OTHER_TARGETS}
716b0393df 2019-10-21 65:
295630c60d 2019-10-23 66: .undef TARGETS OTHER_TARGETS SCRIPTS
716b0393df 2019-10-21 67:
716b0393df 2019-10-21 68: ENABLED=${:!env!:C/=.*//:M*_ENABLE}
f95fc3334e 2019-10-20 69:
716b0393df 2019-10-21 70: .for var in ${ENABLED}
716b0393df 2019-10-21 71: .if !empty(${var}:tl:Mno)
ebafd89015 2019-10-21 72: #.info ${var}
716b0393df 2019-10-21 73: .undef ${var}
716b0393df 2019-10-21 74: .endif
5062c9b6fc 2019-10-19 75: .endfor
716b0393df 2019-10-21 76:
716b0393df 2019-10-21 77: .undef ENABLED
67838bd249 2019-10-21 78: .unexport-env
67838bd249 2019-10-21 79: .export
ebafd89015 2019-10-21 80: #.info ${:!env!}