Rearrange rules to add missing dependency and allow parallel makes.
authorBob Wilson <bob.wilson@apple.com>
Mon, 14 Dec 2009 22:44:22 +0000 (22:44 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 14 Dec 2009 22:44:22 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91352 91177308-0d34-0410-b5e6-96231b3b80d8

docs/Makefile

index 310c4bd5fd3fff8e29fdaa8cd382672ace9e2767..5bfa6c3cfb3f5ec99ec6b7515cdc50ab59422df8 100644 (file)
@@ -100,7 +100,12 @@ install-ocamldoc: ocamldoc
          $(FIND) . -type f -exec \
            $(DataInstall) {} $(PROJ_docsdir)/ocamldoc/html \;
 
-ocamldoc: regen-ocamldoc $(PROJ_OBJ_DIR)/ocamldoc.tar.gz
+ocamldoc: regen-ocamldoc
+       $(Echo) Packaging ocamldoc documentation
+       $(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/ocamldoc.tar*
+       $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc
+       $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/ocamldoc.tar
+       $(Verb) $(CP) $(PROJ_OBJ_DIR)/ocamldoc.tar.gz $(PROJ_OBJ_DIR)/ocamldoc/html/
 
 regen-ocamldoc:
        $(Echo) Building ocamldoc documentation
@@ -113,13 +118,6 @@ regen-ocamldoc:
                $(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \
                `$(FIND) $(LEVEL)/bindings/ocaml -name "*.odoc" -exec echo -load '{}' ';'`
 
-$(PROJ_OBJ_DIR)/ocamldoc.tar.gz:
-       $(Echo) Packaging ocamldoc documentation
-       $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/ocamldoc.tar
-       $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc
-       $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/ocamldoc.tar
-       $(Verb) $(CP) $(PROJ_OBJ_DIR)/ocamldoc.tar.gz $(PROJ_OBJ_DIR)/ocamldoc/html/
-
 uninstall-local::
        $(Echo) Uninstalling Documentation
        $(Verb) $(RM) -rf $(PROJ_docsdir)