Skip to content

Instantly share code, notes, and snippets.

@pcwalton
Created July 20, 2010 19:00
Show Gist options
  • Save pcwalton/483381 to your computer and use it in GitHub Desktop.
Save pcwalton/483381 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment