From ab70588f944cf0fda9824ab68e292a98b4cfa52f Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 7 Nov 2011 12:28:09 +0200 Subject: [PATCH] CLEAN by default (unless DEBUG) CLEAN is so useful and fiddling with .work chroots does demand knowledge (hsh-shell is handy btw); so unless we really get our hands dirty, let's spare ours preciouss tmpfss. --- doc/variables.txt | 2 +- lib/clean.mk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/variables.txt b/doc/variables.txt index e32e2a44..8096cc1d 100644 --- a/doc/variables.txt +++ b/doc/variables.txt @@ -26,7 +26,7 @@ + экономия RAM+swap при сборке в tmpfs, иначе места на диске + очистка рабочего каталога после успешной сборки очередной стадии + может помешать использовать некоторые варианты отладки - + значение: любая строка, по умолчанию пусто + + значение: любая строка; по умолчанию пусто при DEBUG, иначе 1 + см. ../lib/clean.mk - DEBUG diff --git a/lib/clean.mk b/lib/clean.mk index 707cd9ac..c6a2fa0f 100644 --- a/lib/clean.mk +++ b/lib/clean.mk @@ -5,6 +5,10 @@ # tmpfs-sparing extra rule: cleanup workdir after completing each stage # (as packed results are saved this only lowers RAM pressure) +# NB: it's useful enough to be enabled by default in DEBUG abscence +ifndef DEBUG +CLEAN ?= 1 +endif ifdef CLEAN export GLOBAL_CLEAN_WORKDIR = clean-current ifdef DEBUG