Annotation For Makefile
Logged in as anonymous

Lines of Makefile from check-in 8bc8c738d5 that are changed by the sequence of edits moving toward check-in d84f73e80a:

                         1: .include "defaults.mk"
                         2: .include "order.mk"
                         3: .include "/etc/mrc.mk"
                         4: .export
                         5: 
                         6: .MAKE.JOBS?=1
                         7: .if !empty(.MAKE.MODE:Mcompat)
                         8: .error "ERROR: MRC doesn't support "compat" mode."
                         9: .endif
                        10: 
                        11: OTHER_TARGETS:=
                        12: 
                        13: .include "starter.mk"
                        14: 
                        15: .SILENT:
                        16: 
                        17: install:
                        18: 	install rc /etc/rc
                        19: 	install rc.shutdown /etc/rc.shutdown
                        20: 
                        21: SCRIPTS:=${:!find /etc/mrc -name '*.service.mk'!:S/^\/etc\/mrc\///:S/.service.mk$//}
                        22: 
                        23: .if defined(AUTOBOOT)
                        24: .include "init.mk"
                        25: 
                        26: .ERROR:
                        27: 	: ERROR: ABORTING BOOT (sending SIGTERM to parent)!
                        28: 	: target ${.ERROR_TARGET} failed to execute:
                        29: 	: ${.ERROR_CMD}
                        30: 	kill 1
                        31: .endif
                        32: 
                        33: test:
                        34: 	echo Empty target.
                        35: 
                        36: # Create service targets
                        37: .for service in ${SCRIPTS}
                        38: .	include "${service}.service.mk"
                        39: 
                        40: # Service creation targets
                        41: .	if !target(${service})
8bc8c738d5 2022-05-31   42: ${service}: ${_SERVICE}
                        43: .	endif
                        44: 
8bc8c738d5 2022-05-31   45: # Service creation targets
                        46: .	if !target(${service}_status)
                        47: ${service}_status: ${_SERVICE_STATUS}
                        48: .	endif
                        49: 
                        50: # Service exit targets
                        51: .	if !target(${service}_exit)
                        52: ${service}_exit: ${_SERVICE_EXIT} ${DAEMON_${service}_DEPS:S/$/_exit/}
                        53: .	endif
                        54: 
                        55: DAEMON_EXIT: ${service}_exit
                        56: .endfor
                        57: 
                        58: .MAIN: ${SCRIPTS} ${TARGETS}
                        59: 
                        60: .PHONY: ${SCRIPTS} ${OTHER_TARGETS} ${TARGETS}
                        61: .undef OTHER_TARGETS SCRIPTS TARGETS
                        62: 
                        63: ENABLED:=${:!env!:C/=.*//:M*_ENABLE}
                        64: 
                        65: .for var in ${ENABLED}
                        66: .	if !empty(${var}:tl:Mno)
                        67: #.info ${var}
                        68: .		undef ${var}
                        69: .	endif
                        70: .endfor
                        71: 
                        72: .undef ENABLED
                        73: .unexport-env
                        74: .export
                        75: #.info ${:!env!}