X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-chroot/blobdiff_plain/4d529157c24de55bda6fa53ddaf85edd9ed87327..0a9fcbbce723f2190a0a6dd527bbdb9c28b9a1a5:/Makefile diff --git a/Makefile b/Makefile index 3a3d48a..07f2d3c 100644 --- a/Makefile +++ b/Makefile @@ -583,6 +583,17 @@ $(CHECK_SCHROOT_SCRIPTS): check-script/%: .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/