Index: local/docs/Makefile
===================================================================
--- local.orig/docs/Makefile	2010-06-09 12:35:28.000000000 -0700
+++ local/docs/Makefile	2010-07-20 11:37:09.000000000 -0700
@@ -115,8 +115,10 @@
 	$(Verb) $(MAKE) -C $(LEVEL)/bindings/ocaml ocamldoc
 	$(Verb) $(MKDIR) $(PROJ_OBJ_DIR)/ocamldoc/html
 	$(Verb) \
-		$(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \
-		`$(FIND) $(LEVEL)/bindings/ocaml -name "*.odoc" -exec echo -load '{}' ';'`
+    $(FIND) $(LEVEL)/bindings/ocaml -path "$(BuildMode)/*.odoc" -exec \
+      echo -load '{}' ';' | \
+      xargs $(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize_code \
+      -html
 
 uninstall-local::
 	$(Echo) Uninstalling Documentation
