log.mk: Don't write anything to build.log when DIRECT_TARGETS

build.log does not exist when they run, because the build directory
is no longer created to run them.
This commit is contained in:
Anton Midyukov 2021-06-22 21:19:03 +07:00
parent 83e0b91309
commit 58f650503f

View File

@ -30,6 +30,10 @@ MAKE += -s
LOG = 2>>$(BUILDLOG) >/dev/null
endif
ifeq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS)))
LOG = >/dev/null 2>&1
endif
# in build.mk, naive TIME gets expanded a bit too early (no need to export btw)
DATE = $(shell date +%Y%m%d)
TIME = `date +%H:%M:%S`