install: Do not evaluate .install unless we are installing

Since `.install` has directory dependencies on the install directories, this
results in attempts to create directories even if you don't install.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2021-11-26 18:09:13 +01:00
parent b05088a861
commit 1ca933bf93
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ endif
.objects: .prebuild
.objects: $(MIQ_OBJDIR:%=%.mkdir)
.product: $(MIQ_OUTPRODS)
.postbuild: .product .install
.postbuild: .product $(DO_INSTALL:%=.install)
.install: $(MIQ_INSTALL)
.tests: $(TESTS:%=%.test)
.goodbye: .postbuild