There is no 'make uninstall' for ccache.
authorEric Andersen <andersen@codepoet.org>
Sat, 3 Feb 2007 00:52:39 +0000 (00:52 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 3 Feb 2007 00:52:39 +0000 (00:52 -0000)
Attempt to manually make uninstall work....

toolchain/ccache/ccache.mk

index d6577b40587e44d87e7c292e2f995629f1ad3432..8a44a70faea00d42479eb412ad1b3cdbc7bafe7f 100644 (file)
@@ -80,7 +80,27 @@ endif
 ccache: gcc $(STAGING_DIR)/$(CCACHE_TARGET_BINARY)
 
 ccache-clean:
-       $(MAKE) -C $(CCACHE_DIR1) uninstall
+       rm -rf  $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-cc
+       rm -rf  $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gcc
+       rm -rf  $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-cc
+       rm -rf  $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc
+       [ -f $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-gcc ] && \
+               mv $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-gcc $(STAGING_DIR)/bin/
+       (cd $(STAGING_DIR)/bin; \
+               ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(REAL_GNU_TARGET_NAME)-cc; \
+               ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-cc; \
+               ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-gcc;)
+       [ -f $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-c++ ] && \
+               rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-c++; \
+               mv $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-c++ $(STAGING_DIR)/bin/
+       [ -f $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-g++ ] && \
+               rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-g++; \
+               mv $(STAGING_DIR)/bin-ccache/$(REAL_GNU_TARGET_NAME)-g++  $(STAGING_DIR)/bin/
+       rm -rf  $(STAGING_DIR)/bin-ccache/*
+       (cd $(STAGING_DIR)/bin; \
+               ln -fs $(REAL_GNU_TARGET_NAME)-g++ $(GNU_TARGET_NAME)-c++; \
+               ln -fs $(REAL_GNU_TARGET_NAME)-g++ $(GNU_TARGET_NAME)-g++;\
+               ln -fs $(REAL_GNU_TARGET_NAME)-g++ $(REAL_GNU_TARGET_NAME)-c++);
        -$(MAKE) -C $(CCACHE_DIR1) clean
 
 ccache-dirclean: