Commit 86f75210 authored by Anton Midyukov's avatar Anton Midyukov

Makefile, profile.mk: not create temp directories with DIRECT_TARGETS

parent 4f1110f7
...@@ -22,7 +22,7 @@ export PATH := $(CURDIR)/bin:$(PATH) ...@@ -22,7 +22,7 @@ export PATH := $(CURDIR)/bin:$(PATH)
# recursive make considered useful for m-p # recursive make considered useful for m-p
MAKE += -r --no-print-directory MAKE += -r --no-print-directory
DIRECT_TARGETS := help help/distro help/ve help/vm clean distclean check export DIRECT_TARGETS := help help/distro help/ve help/vm clean distclean check
.PHONY: $(DIRECT_TARGETS) .PHONY: $(DIRECT_TARGETS)
# these build nothing so no use of reports either # these build nothing so no use of reports either
......
...@@ -2,6 +2,7 @@ ifndef MKIMAGE_PROFILES ...@@ -2,6 +2,7 @@ ifndef MKIMAGE_PROFILES
$(error this makefile is designed to be included in toplevel one) $(error this makefile is designed to be included in toplevel one)
endif endif
ifneq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS)))
# this could have come from env; or could be symlinked; or is made anew # this could have come from env; or could be symlinked; or is made anew
# (the reuse rationale is avoiding extra tmpdir lookups) # (the reuse rationale is avoiding extra tmpdir lookups)
# NB: immediate assignment matters # NB: immediate assignment matters
...@@ -20,6 +21,7 @@ endif ...@@ -20,6 +21,7 @@ endif
ifeq (,$(BUILDDIR)) ifeq (,$(BUILDDIR))
$(error suitable BUILDDIR unavailable) $(error suitable BUILDDIR unavailable)
endif endif
endif
# even smart caching only hurts when every build goes from scratch # even smart caching only hurts when every build goes from scratch
NO_CACHE ?= 1 NO_CACHE ?= 1
......
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