Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2006-09-02 02:00:29 +0400
committerChris Want <cwant@ualberta.ca>2006-09-02 02:00:29 +0400
commit7970da34edbfba8b317fff23fb276e78bf67e460 (patch)
tree7c227493477de8c8142d87125a0662fb0cd26e28 /extern
parent5d407406716f588770288d64710968f6f363161b (diff)
'Better' cleaning for bullet (trickier to clean than most, since it is two
libraries split among many subdirectories).
Diffstat (limited to 'extern')
-rw-r--r--extern/bullet/Bullet/Makefile14
-rw-r--r--extern/bullet/BulletDynamics/Makefile9
2 files changed, 22 insertions, 1 deletions
diff --git a/extern/bullet/Bullet/Makefile b/extern/bullet/Bullet/Makefile
index 6c1b4bee26e..8c4284239cc 100644
--- a/extern/bullet/Bullet/Makefile
+++ b/extern/bullet/Bullet/Makefile
@@ -47,10 +47,22 @@ all debug:: objdirs
include nan_compile.mk
-.PHONY: objdirs
+.PHONY: objdirs clean
objdirs:
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)BroadphaseCollision
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)NarrowPhaseCollision
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)CollisionShapes
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)CollisionDispatch
+
+optclean::
+ @-[ ! -d $(DIR)/BroadphaseCollision ] || (cd $(DIR)/BroadphaseCollision && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/NarrowPhaseCollision ] || (cd $(DIR)/NarrowPhaseCollision && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/CollisionShapes ] || (cd $(DIR)/CollisionShapes && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/CollisionDispatch ] || (cd $(DIR)/CollisionDispatch && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+
+debugclean::
+ @-[ ! -d $(DIR)/debug/BroadphaseCollision ] || (cd $(DIR)/debug/BroadphaseCollision && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/debug/NarrowPhaseCollision ] || (cd $(DIR)/debug/NarrowPhaseCollision && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/debug/CollisionShapes ] || (cd $(DIR)/debug/CollisionShapes && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/debug/CollisionDispatch ] || (cd $(DIR)/debug/CollisionDispatch && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
diff --git a/extern/bullet/BulletDynamics/Makefile b/extern/bullet/BulletDynamics/Makefile
index 2d95f1fdd4b..a2cdbe513ec 100644
--- a/extern/bullet/BulletDynamics/Makefile
+++ b/extern/bullet/BulletDynamics/Makefile
@@ -53,3 +53,12 @@ objdirs:
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)ConstraintSolver
@$(MAKE) makedir DIR=$(DIR)/$(DEBUG_DIR)Dynamics
+optclean::
+ @-[ ! -d $(DIR)/Vehicle ] || (cd $(DIR)/Vehicle && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/ConstraintSolver ] || (cd $(DIR)/ConstraintSolver && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/Dynamics ] || (cd $(DIR)/Dynamics && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+
+debugclean::
+ @-[ ! -d $(DIR)/debug/Vehicle ] || (cd $(DIR)/debug/Vehicle && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/debug/ConstraintSolver ] || (cd $(DIR)/debug/ConstraintSolver && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)
+ @-[ ! -d $(DIR)/debug/Dynamics ] || (cd $(DIR)/debug/Dynamics && $(RM) *.o *.a *.d *.res ii_files/*.ii *.class *.h)