Annotation For Makefile
Logged in as anonymous

Lines of Makefile from check-in 295630c60d that are changed by the sequence of edits moving toward check-in 5f60bcc749:

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