build.mk: Do nothing with IMAGEDIR if $(DIRECT_TARGETS) is running
This commit is contained in:
parent
8fdafec8b7
commit
7b4f9e4dbe
@ -47,6 +47,7 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
# to be passed into distcfg.mk; suggestions are welcome
|
# to be passed into distcfg.mk; suggestions are welcome
|
||||||
|
ifneq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS)))
|
||||||
IMAGEDIR ?= $(shell \
|
IMAGEDIR ?= $(shell \
|
||||||
if [ -d "$$HOME/out" -a -w "$$HOME/out" ]; then \
|
if [ -d "$$HOME/out" -a -w "$$HOME/out" ]; then \
|
||||||
echo "$$HOME/out"; \
|
echo "$$HOME/out"; \
|
||||||
@ -55,6 +56,7 @@ IMAGEDIR ?= $(shell \
|
|||||||
mkdir -p "$$dir" && echo "$$dir" || echo "/tmp"; \
|
mkdir -p "$$dir" && echo "$$dir" || echo "/tmp"; \
|
||||||
fi; \
|
fi; \
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
LOGDIR ?= $(wildcard $(IMAGEDIR))
|
LOGDIR ?= $(wildcard $(IMAGEDIR))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user