Changeset View
Changeset View
Standalone View
Standalone View
head/Makefile.inc1
Show First 20 Lines • Show All 1,137 Lines • ▼ Show 20 Lines | |||||
.if !defined(NO_LIBS) | .if !defined(NO_LIBS) | ||||
WMAKE_TGTS+= _libraries | WMAKE_TGTS+= _libraries | ||||
.endif | .endif | ||||
WMAKE_TGTS+= everything | WMAKE_TGTS+= everything | ||||
.if defined(LIBCOMPAT) && empty(SUBDIR_OVERRIDE) | .if defined(LIBCOMPAT) && empty(SUBDIR_OVERRIDE) | ||||
WMAKE_TGTS+= build${libcompat} | WMAKE_TGTS+= build${libcompat} | ||||
.endif | .endif | ||||
# record buildworld time in seconds | |||||
.if make(buildworld) | |||||
_BUILDWORLD_START!= date '+%s' | |||||
.export _BUILDWORLD_START | |||||
.endif | |||||
buildworld: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue .PHONY | buildworld: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue .PHONY | ||||
.ORDER: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue | .ORDER: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue | ||||
buildworld_prologue: .PHONY | buildworld_prologue: .PHONY | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> World build started on `LC_ALL=C date`" | @echo ">>> World build started on `LC_ALL=C date`" | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
buildworld_epilogue: .PHONY | buildworld_epilogue: .PHONY | ||||
@echo | @echo | ||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
@echo ">>> World build completed on `LC_ALL=C date`" | @echo ">>> World build completed on `LC_ALL=C date`" | ||||
@seconds=$$(($$(date '+%s') - ${_BUILDWORLD_START})); \ | |||||
echo -n ">>> World build in $$seconds seconds, "; \ | |||||
echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make -j/}" | |||||
@echo "--------------------------------------------------------------" | @echo "--------------------------------------------------------------" | ||||
# | # | ||||
# We need to have this as a target because the indirection between Makefile | # We need to have this as a target because the indirection between Makefile | ||||
# and Makefile.inc1 causes the correct PATH to be used, rather than a | # and Makefile.inc1 causes the correct PATH to be used, rather than a | ||||
# modification of the current environment's PATH. In addition, we need | # modification of the current environment's PATH. In addition, we need | ||||
# to quote multiword values. | # to quote multiword values. | ||||
# | # | ||||
▲ Show 20 Lines • Show All 2,206 Lines • Show Last 20 Lines |