diff options
author | Eric Andersen <andersen@codepoet.org> | 2007-02-03 00:52:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2007-02-03 00:52:39 +0000 |
commit | 0a0b9d05e043f8627c6b1079e9140bd0be08cb68 (patch) | |
tree | 1206e5ad744a337ad336a597b220e2b535e063db /toolchain/ccache | |
parent | 0b351be15b056db1bb4bf8e0a703222312579a2b (diff) | |
download | buildroot-novena-0a0b9d05e043f8627c6b1079e9140bd0be08cb68.tar.gz buildroot-novena-0a0b9d05e043f8627c6b1079e9140bd0be08cb68.zip |
There is no 'make uninstall' for ccache.
Attempt to manually make uninstall work....
Diffstat (limited to 'toolchain/ccache')
-rw-r--r-- | toolchain/ccache/ccache.mk | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/toolchain/ccache/ccache.mk b/toolchain/ccache/ccache.mk index d6577b405..8a44a70fa 100644 --- a/toolchain/ccache/ccache.mk +++ b/toolchain/ccache/ccache.mk @@ -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: |