Origin for each line in
Makefile
from check-in bc20f9df9f:
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
716b0393df 2019-10-21 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
84d4cb5e66 2019-10-19 15:
8f80b79392 2019-10-20 16: #.MAKE.JOBS?=2
7a1e7f4a58 2019-10-21 17: .SILENT:
7a1e7f4a58 2019-10-21 18:
17041521b1 2019-10-23 19: install:
17041521b1 2019-10-23 20: install rc /etc/rc
17041521b1 2019-10-23 21:
295630c60d 2019-10-23 22: SCRIPTS=${:!find /etc/mrc -name '*.service.mk'!:S/\/etc\/mrc\///}
5fb1968943 2019-10-19 23:
295630c60d 2019-10-23 24: .if defined(AUTOBOOT)
f95fc3334e 2019-10-20 25: .ERROR:
f95fc3334e 2019-10-20 26: : ERROR: ABORTING BOOT (sending SIGTERM to parent)!
f95fc3334e 2019-10-20 27: : target ${.ERROR_TARGET} failed to execute:
f95fc3334e 2019-10-20 28: : ${.ERROR_CMD}
f95fc3334e 2019-10-20 29: kill 1
5fb1968943 2019-10-19 30: .else
716b0393df 2019-10-21 31: DAEMON: NETWORK SERVERS
716b0393df 2019-10-21 32:
716b0393df 2019-10-21 33: LOGIN: DAEMON
716b0393df 2019-10-21 34:
716b0393df 2019-10-21 35: NETWORK:
716b0393df 2019-10-21 36:
716b0393df 2019-10-21 37: SERVERS:
716b0393df 2019-10-21 38:
67838bd249 2019-10-21 39: SERVICE:
67838bd249 2019-10-21 40: .endif
67838bd249 2019-10-21 41:
67838bd249 2019-10-21 42: test:
67838bd249 2019-10-21 43: echo Empty target.
716b0393df 2019-10-21 44:
7a1e7f4a58 2019-10-21 45: TARGETS:=${SCRIPTS:S/.init.mk//:S/.service.mk//}
7a1e7f4a58 2019-10-21 46:
295630c60d 2019-10-23 47: .for file in ${SCRIPTS}
295630c60d 2019-10-23 48: #.info ${file}
295630c60d 2019-10-23 49: .include "${file}"
bc20f9df9f 2019-10-24 50: .if !target(${file:S/.service.mk//})
bc20f9df9f 2019-10-24 51: ${file:S/.service.mk//}: _service
bc20f9df9f 2019-10-24 52: .endif
295630c60d 2019-10-23 53: .endfor
295630c60d 2019-10-23 54:
295630c60d 2019-10-23 55: .include "init.mk"
295630c60d 2019-10-23 56:
f95fc3334e 2019-10-20 57: .MAIN: ${TARGETS}
f95fc3334e 2019-10-20 58:
716b0393df 2019-10-21 59: .PHONY: ${TARGETS} ${OTHER_TARGETS}
716b0393df 2019-10-21 60:
295630c60d 2019-10-23 61: .undef TARGETS OTHER_TARGETS SCRIPTS
716b0393df 2019-10-21 62:
716b0393df 2019-10-21 63: ENABLED=${:!env!:C/=.*//:M*_ENABLE}
f95fc3334e 2019-10-20 64:
716b0393df 2019-10-21 65: .for var in ${ENABLED}
716b0393df 2019-10-21 66: .if !empty(${var}:tl:Mno)
ebafd89015 2019-10-21 67: #.info ${var}
716b0393df 2019-10-21 68: .undef ${var}
716b0393df 2019-10-21 69: .endif
5062c9b6fc 2019-10-19 70: .endfor
716b0393df 2019-10-21 71:
716b0393df 2019-10-21 72: .undef ENABLED
67838bd249 2019-10-21 73: .unexport-env
67838bd249 2019-10-21 74: .export
ebafd89015 2019-10-21 75: #.info ${:!env!}