mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-21 13:47:39 +01:00
defs.mk, timed-make-shell.sh: Beautify make benchmark
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7acb5a11b1
commit
6a40259c3e
2 changed files with 5 additions and 6 deletions
|
|
@ -5,15 +5,15 @@
|
||||||
ifndef JW_BUILD_DEF_MK_INCLUDED
|
ifndef JW_BUILD_DEF_MK_INCLUDED
|
||||||
JW_BUILD_DEF_MK_INCLUDED = true
|
JW_BUILD_DEF_MK_INCLUDED = true
|
||||||
|
|
||||||
|
ifeq ($(MAKE_BENCHMARK),true)
|
||||||
|
SHELL = /bin/bash $(MOD_SCRIPT_DIR)/timed-make-shell.sh
|
||||||
|
endif
|
||||||
|
|
||||||
MAKEFLAGS += -r
|
MAKEFLAGS += -r
|
||||||
|
|
||||||
include $(MODDIR)/make/platform.mk
|
include $(MODDIR)/make/platform.mk
|
||||||
include $(MODDIR)/make/projects.mk
|
include $(MODDIR)/make/projects.mk
|
||||||
|
|
||||||
ifeq ($(MAKE_BENCHMARK),true)
|
|
||||||
SHELL = $(MOD_SCRIPT_DIR)/timed-make-shell.sh
|
|
||||||
endif
|
|
||||||
|
|
||||||
# ----- pre-local.mk
|
# ----- pre-local.mk
|
||||||
|
|
||||||
ifneq ($(wildcard $(MODDIR)/make/pre-local.mk),)
|
ifneq ($(wildcard $(MODDIR)/make/pre-local.mk),)
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,5 @@
|
||||||
|
|
||||||
shift # get rid of the '-c' supplied by make.
|
shift # get rid of the '-c' supplied by make.
|
||||||
log=/tmp/make-cmds.log
|
log=/tmp/make-cmds.log
|
||||||
echo running "$*" >> $log
|
/usr/bin/time --format "%E $*" -ao $log /bin/bash -c "$*"
|
||||||
time /bin/bash -c "$*" 2>&1 | tee -a $log
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue