Commit 2f357e44 authored by Michael Shigorin's avatar Michael Shigorin

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
parent a2b89e66
...@@ -51,11 +51,9 @@ distclean: clean ...@@ -51,11 +51,9 @@ distclean: clean
# builddir existing outside read-only metaprofile is less ephemeral # builddir existing outside read-only metaprofile is less ephemeral
# than BUILDDIR variable is -- usually it's unneeded afterwards # 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 postclean: build-image
@{ \ @{ \
if [ "0$(DEBUG)" -lt 2 -a -z "$(CHECK)" ] && \ if [ "0$(DEBUG)" -lt 2 -a -z "$(CHECK)$(REPORT)" ] && \
[ "$(NUM_TARGETS)" -gt 1 \ [ "$(NUM_TARGETS)" -gt 1 \
-o -n "$(__frontend)" \ -o -n "$(__frontend)" \
-o ! -L "$(SYMLINK)" ]; then \ -o ! -L "$(SYMLINK)" ]; then \
......
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