Commit 8dbd0a0f authored by Anton Midyukov's avatar Anton Midyukov

Makefile, lib/build.mk: fix usage AUTOCLEAN with DEBUG

make distclean should be launched after copying the log when debugging is enabled.
parent c8bbabcd
...@@ -69,6 +69,7 @@ SHELL = /bin/bash ...@@ -69,6 +69,7 @@ SHELL = /bin/bash
else \ else \
exit 1; \ exit 1; \
fi; \ fi; \
if [ -n "$(AUTOCLEAN)" ]; then $(MAKE) distclean; fi; \
done; \ done; \
if [ "$$n" -lt "$(NUM_TARGETS)" ]; then say; fi if [ "$$n" -lt "$(NUM_TARGETS)" ]; then say; fi
......
...@@ -103,7 +103,6 @@ build-image: profile/populate ...@@ -103,7 +103,6 @@ build-image: profile/populate
df -P $(BUILDDIR) | awk 'END { if ($$4 < $(LOWSPACE)) \ df -P $(BUILDDIR) | awk 'END { if ($$4 < $(LOWSPACE)) \
{ print "NB: low space on "$$6" ("$$5" used)"}}'; \ { print "NB: low space on "$$6" ("$$5" used)"}}'; \
fi; \ fi; \
if [ -n "$(AUTOCLEAN)" -a $$RETVAL = 0 ]; then $(MAKE) distclean; fi; \
if [ -n "$(BELL)" ]; then echo -ne '\a'; fi; \ if [ -n "$(BELL)" ]; then echo -ne '\a'; fi; \
exit $$RETVAL; \ exit $$RETVAL; \
} >&2 } >&2
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