Annotation For Makefile
Logged in as anonymous

Origin for each line in Makefile from check-in d8511a3d7c:

88e0b45310 2019-10-23    1: .include "defaults.mk"
d8511a3d7c 2022-05-30    2: .include "order.mk"
5f60bcc749 2019-10-23    3: .include "/etc/mrc.mk"
8f80b79392 2019-10-20    4: .export
84d4cb5e66 2019-10-19    5: 
d8511a3d7c 2022-05-30    6: OTHER_TARGETS:=
d8511a3d7c 2022-05-30    7: 
d8511a3d7c 2022-05-30    8: .include "starter.mk"
4361bde8b2 2022-05-29    9: 
7a1e7f4a58 2019-10-21   10: .SILENT:
17041521b1 2019-10-23   11: 
17041521b1 2019-10-23   12: install:
17041521b1 2019-10-23   13: 	install rc /etc/rc
d8511a3d7c 2022-05-30   14: 	install rc.shutdown /etc/rc.shutdown
295630c60d 2019-10-23   15: 
d8511a3d7c 2022-05-30   16: SCRIPTS:=${:!find /etc/mrc -name '*.service.mk'!:S/^\/etc\/mrc\///:S/.service.mk$//}
5fb1968943 2019-10-19   17: 
5fb1968943 2019-10-19   18: .if defined(AUTOBOOT)
d724289db9 2020-04-10   19: .include "init.mk"
d724289db9 2020-04-10   20: 
f95fc3334e 2019-10-20   21: .ERROR:
f95fc3334e 2019-10-20   22: 	: ERROR: ABORTING BOOT (sending SIGTERM to parent)!
f95fc3334e 2019-10-20   23: 	: target ${.ERROR_TARGET} failed to execute:
f95fc3334e 2019-10-20   24: 	: ${.ERROR_CMD}
f95fc3334e 2019-10-20   25: 	kill 1
5fb1968943 2019-10-19   26: .endif
5fb1968943 2019-10-19   27: 
67838bd249 2019-10-21   28: test:
67838bd249 2019-10-21   29: 	echo Empty target.
67838bd249 2019-10-21   30: 
d8511a3d7c 2022-05-30   31: # Create service targets
d8511a3d7c 2022-05-30   32: .for service in ${SCRIPTS}
d8511a3d7c 2022-05-30   33: .	include "${service}.service.mk"
d8511a3d7c 2022-05-30   34: 
d8511a3d7c 2022-05-30   35: # Service creation targets
d8511a3d7c 2022-05-30   36: .	if !target(${service})
d8511a3d7c 2022-05-30   37: ${service}: ${_SERVICE}
d8511a3d7c 2022-05-30   38: .	endif
d8511a3d7c 2022-05-30   39: 
d8511a3d7c 2022-05-30   40: # Service creation targets
d8511a3d7c 2022-05-30   41: .	if !target(${service}_status)
d8511a3d7c 2022-05-30   42: ${service}_status: ${_SERVICE_STATUS}
d8511a3d7c 2022-05-30   43: .	endif
d8511a3d7c 2022-05-30   44: 
d8511a3d7c 2022-05-30   45: # Service exit targets
d8511a3d7c 2022-05-30   46: .	if !target(${service}_exit)
d8511a3d7c 2022-05-30   47: ${service}_exit: ${_SERVICE_EXIT}
d8511a3d7c 2022-05-30   48: .	endif
d8511a3d7c 2022-05-30   49: 
d8511a3d7c 2022-05-30   50: DAEMON_EXIT: ${service}_exit
716b0393df 2019-10-21   51: .endfor
716b0393df 2019-10-21   52: 
d8511a3d7c 2022-05-30   53: .MAIN: ${SCRIPTS} ${TARGETS}
d724289db9 2020-04-10   54: 
d8511a3d7c 2022-05-30   55: .PHONY: ${SCRIPTS} ${OTHER_TARGETS} ${TARGETS}
d8511a3d7c 2022-05-30   56: .undef OTHER_TARGETS SCRIPTS TARGETS
d724289db9 2020-04-10   57: 
d8511a3d7c 2022-05-30   58: ENABLED:=${:!env!:C/=.*//:M*_ENABLE}
716b0393df 2019-10-21   59: 
716b0393df 2019-10-21   60: .for var in ${ENABLED}
d8511a3d7c 2022-05-30   61: .	if !empty(${var}:tl:Mno)
ebafd89015 2019-10-21   62: #.info ${var}
d8511a3d7c 2022-05-30   63: .		undef ${var}
d8511a3d7c 2022-05-30   64: .	endif
5062c9b6fc 2019-10-19   65: .endfor
716b0393df 2019-10-21   66: 
716b0393df 2019-10-21   67: .undef ENABLED
67838bd249 2019-10-21   68: .unexport-env
67838bd249 2019-10-21   69: .export
ebafd89015 2019-10-21   70: #.info ${:!env!}