Commit 7b4f9e4d authored by Anton Midyukov's avatar Anton Midyukov

build.mk: Do nothing with IMAGEDIR if $(DIRECT_TARGETS) is running

parent 8fdafec8
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment