From 7b4f9e4dbe9325ae8c0b201e666844c26d168b63 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Thu, 14 Oct 2021 13:50:24 +0700 Subject: [PATCH] build.mk: Do nothing with IMAGEDIR if $(DIRECT_TARGETS) is running --- lib/build.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/build.mk b/lib/build.mk index 19324ca9..e2971a64 100644 --- a/lib/build.mk +++ b/lib/build.mk @@ -47,6 +47,7 @@ endif # to be passed into distcfg.mk; suggestions are welcome +ifneq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS))) IMAGEDIR ?= $(shell \ if [ -d "$$HOME/out" -a -w "$$HOME/out" ]; then \ echo "$$HOME/out"; \ @@ -55,6 +56,7 @@ IMAGEDIR ?= $(shell \ mkdir -p "$$dir" && echo "$$dir" || echo "/tmp"; \ fi; \ ) +endif LOGDIR ?= $(wildcard $(IMAGEDIR))