Annotation For Makefile
Logged in as anonymous

Lines of Makefile from check-in bc20f9df9f that are changed by the sequence of edits moving toward check-in d724289db9:

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