diff --git a/Makefile.common b/Makefile.common index 60ce5f1f891..5770ada8272 100644 --- a/Makefile.common +++ b/Makefile.common @@ -351,7 +351,7 @@ $(BUILD_ROOT)/Debug/%.o: %.cpp $(BUILD_ROOT)/Debug/.dir # Clean nukes the tree clean:: - rm -rf Debug Release Depend + rm -rf $(BUILD_ROOT)/Debug $(BUILD_ROOT)/Release $(BUILD_ROOT)/Depend rm -f core *.o *.d *.so *~ *.flc # If dependancies were generated for the file that included this file, diff --git a/Makefile.rules b/Makefile.rules index 60ce5f1f891..5770ada8272 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -351,7 +351,7 @@ $(BUILD_ROOT)/Debug/%.o: %.cpp $(BUILD_ROOT)/Debug/.dir # Clean nukes the tree clean:: - rm -rf Debug Release Depend + rm -rf $(BUILD_ROOT)/Debug $(BUILD_ROOT)/Release $(BUILD_ROOT)/Depend rm -f core *.o *.d *.so *~ *.flc # If dependancies were generated for the file that included this file,