summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2025-07-02 17:39:26 +0100
committerBrooks Davis <brooks@FreeBSD.org>2025-07-02 17:39:26 +0100
commit1b06e0b889f82046bd2ed6acb54fed00313b0b90 (patch)
tree5eb8abe057b7f6971a8f4b11807f9bc3aa0f2d75 /Makefile
parent3e041faa828a359ef0b91b5203eed5ab2c11e42d (diff)
Revert "src/Makefile: log real/user/system time for build targets"
This broke `make makeman` by unconditionally adding output to all top level targets. Lacking an obvious and trivial workaround, it makes sense to back it out and rethink. This reverts commit afa70490ee779646fa0e936801cb28795580bf01. PR: 287274 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51119
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 1 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index d600eb69ed4b..4afec2a80c60 100644
--- a/Makefile
+++ b/Makefile
@@ -376,22 +376,13 @@ buildworld: upgrade_checks
kernel-toolchain: upgrade_checks
.endif
-# we need the system time(1) command, not from the shell
-time_cmd= /usr/bin/time
-
-# mktemp(1) is not portable
-mktemp_cmd= mktemp /tmp/_time-logging-XXXXXXXXX
-
#
# Handle the user-driven targets, using the source relative mk files.
#
tinderbox toolchains kernel-toolchains: .MAKE
${TGTS}: .PHONY .MAKE
- ${_+_}@cd ${.CURDIR}; _time_tmp=$$(${mktemp_cmd}); \
- ${time_cmd} -o $${_time_tmp} -p env ${_MAKE} ${.TARGET}; \
- echo ">>> Time spent on target ${.TARGET}: $$(tr '\n' ' ' < $${_time_tmp})"; \
- rm -f $${_time_tmp}
+ ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET}
# The historic default "all" target creates files which may cause stale
# or (in the cross build case) unlinkable results. Fail with an error