From 58f650503f69472044fbb452a88778ce808f16a7 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Tue, 22 Jun 2021 21:19:03 +0700 Subject: [PATCH] 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. --- lib/log.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/log.mk b/lib/log.mk index b5ec7a4b..94a51ef9 100644 --- a/lib/log.mk +++ b/lib/log.mk @@ -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`