You need to sign in or sign up before continuing.
Commit ab70588f authored by Michael Shigorin's avatar Michael Shigorin

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.
parent 4313629a
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
+ экономия RAM+swap при сборке в tmpfs, иначе места на диске + экономия RAM+swap при сборке в tmpfs, иначе места на диске
+ очистка рабочего каталога после успешной сборки очередной стадии + очистка рабочего каталога после успешной сборки очередной стадии
+ может помешать использовать некоторые варианты отладки + может помешать использовать некоторые варианты отладки
+ значение: любая строка, по умолчанию пусто + значение: любая строка; по умолчанию пусто при DEBUG, иначе 1
+ см. ../lib/clean.mk + см. ../lib/clean.mk
- DEBUG - DEBUG
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
# tmpfs-sparing extra rule: cleanup workdir after completing each stage # tmpfs-sparing extra rule: cleanup workdir after completing each stage
# (as packed results are saved this only lowers RAM pressure) # (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 ifdef CLEAN
export GLOBAL_CLEAN_WORKDIR = clean-current export GLOBAL_CLEAN_WORKDIR = clean-current
ifdef DEBUG ifdef DEBUG
......
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