## Proxy setting.
CONFIG_VARS += PROXY
-PROXY := $(shell \
+PROXY = $(shell \
eval $$(apt-config $(foreach a,$(APTCONF),-cetc/apt-conf.d/$a) \
shell proxy Acquire::http::proxy); \
case $${proxy+t} in (t) echo "$$proxy" ;; (*) echo nil ;; esac)
## $(call squote,TXT)
##
## Single-quote TXT.
-squote = '$(subst ','\\'',$1)'
+squote = '$(subst ','\'',$1)'
+#'
## $(call chroot-dist,D-A) -> D
## $(call chroot-arch,D-A) -> A
.PHONY: $(addprefix check-script/,$(SCHROOT_SCRIPTS))
###--------------------------------------------------------------------------
+### Ccache setup.
+
+CCACHE_CONFIGS = $(foreach r,$(ALL_CHROOTS), \
+ /var/lib/sbuild/build/.ccache/$(LVPREFIX)$r/ccache.conf)
+all:: $(CCACHE_CONFIGS)
+$(CCACHE_CONFIGS): /var/lib/sbuild/build/.ccache/$(LVPREFIX)%/ccache.conf: \
+ etc/ccache.conf
+ $(V_AT)mkdir -p $(dir $@)
+ $(call v_tag,COPY)cp $< $@.new && mv $@.new $@
+
+###--------------------------------------------------------------------------
### `/usr/local/' structure.
LOCAL_COMMON_DIRS = share/ src/
### Main chroot maintenance.
OPTS =
-FRESH = create
+FRESH = 1w
JOBS = chroot cross-tools pkg-build
MAINTQ_ = -q