Stick the cache in its own empty dir
authorEric Andersen <andersen@codepoet.org>
Fri, 16 Apr 2004 01:39:25 +0000 (01:39 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 16 Apr 2004 01:39:25 +0000 (01:39 -0000)
make/ccache.mk

index ce50444695c3e0a27e3648be72865718081004f0..f973a529e55f169fe1142a083489bddec1768e43 100644 (file)
@@ -21,8 +21,9 @@ $(CCACHE_DIR1)/.unpacked: $(DL_DIR)/$(CCACHE_SOURCE)
 $(CCACHE_DIR1)/.patched: $(CCACHE_DIR1)/.unpacked
        $(SED) "s,getenv(\"CCACHE_PATH\"),\"$(STAGING_DIR)/usr/bin\",g" \
                $(CCACHE_DIR1)/execute.c
-       $(SED) "s,getenv(\"CCACHE_DIR\"),\"$(CCACHE_DIR1)\",g" \
+       $(SED) "s,getenv(\"CCACHE_DIR\"),\"$(CCACHE_DIR1)/cache\",g" \
                $(CCACHE_DIR1)/ccache.c
+       mkdir -p $(CCACHE_DIR1)/cache
        touch $(CCACHE_DIR1)/.patched
 
 $(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched