Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -20,42 +20,43 @@ install rc /etc/rc SCRIPTS=${:!find /etc/mrc -name '*.service.mk'!:S/\/etc\/mrc\///} .if defined(AUTOBOOT) +.include "init.mk" + .ERROR: : ERROR: ABORTING BOOT (sending SIGTERM to parent)! : target ${.ERROR_TARGET} failed to execute: : ${.ERROR_CMD} kill 1 .else DAEMON: NETWORK SERVERS - LOGIN: DAEMON - NETWORK: - SERVERS: - SERVICE: + +mount: +root: +netif: +newsyslog: .endif test: echo Empty target. -TARGETS:=${SCRIPTS:S/.init.mk//:S/.service.mk//} +TARGETS:=${SCRIPTS:S/.service.mk//} .for file in ${SCRIPTS} #.info ${file} .include "${file}" .if !target(${file:S/.service.mk//}) ${file:S/.service.mk//}: _service .endif .endfor -.include "init.mk" - .MAIN: ${TARGETS} .PHONY: ${TARGETS} ${OTHER_TARGETS} .undef TARGETS OTHER_TARGETS SCRIPTS