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