diff --git a/Makefile b/Makefile index 334070f6da..ad6fd21c51 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,8 @@ uninstall.%: @rm -rf $(INSTALL_LOCATION_BIN)/$* $(INSTALL_LOCATION_LIB)/$* \ $(INSTALL_LOCATION)/dbd $(INSTALL_MAN) $(INSTALL_INCLUDE) @rm -rf rec.bak rec + @DIR1=`pwd`;cd $(INSTALL_LOCATION);DIR2=`pwd`;cd $$DIR1;\ + if [ "$$DIR1" != "$$DIR2" ]; then rm -fr $(INSTALL_LOCATION)/config; fi clean.%: @echo "TOP: Cleaning $* " @@ -100,4 +102,3 @@ clean.%: @find config -type d -name "O.$*" -prune -exec rm -rf {} \; -