From 2f357e44d60e53d6e76ba056da21a05c2322fe86 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Tue, 18 Sep 2012 09:19:35 +0400 Subject: [PATCH] clean.mk: skip if REPORT requested either The problem would manifest itself like this: ..:..:.. cleaning up after build sed: can't read .../build.log: No such file or directory --- lib/clean.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/clean.mk b/lib/clean.mk index 0d3a3134..b99d1bac 100644 --- a/lib/clean.mk +++ b/lib/clean.mk @@ -51,11 +51,9 @@ distclean: clean # builddir existing outside read-only metaprofile is less ephemeral # than BUILDDIR variable is -- usually it's unneeded afterwards -# so just zap it unless DEBUG has been requested (moreso for multi -# image builds, UI based ones, and readonly metaprofile; or CHECK) postclean: build-image @{ \ - if [ "0$(DEBUG)" -lt 2 -a -z "$(CHECK)" ] && \ + if [ "0$(DEBUG)" -lt 2 -a -z "$(CHECK)$(REPORT)" ] && \ [ "$(NUM_TARGETS)" -gt 1 \ -o -n "$(__frontend)" \ -o ! -L "$(SYMLINK)" ]; then \