diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 685569a702d8..e28ccf187aa4 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -159,7 +159,7 @@ endif #------------------------------------------------------------------------ ifneq ($(PROJ_OBJ_DIR),$(PROJ_SRC_DIR)) -Makefile: $(PROJ_SRC_DIR)/Makefile +Makefile: $(PROJ_SRC_DIR)/Makefile $(ExtraMakefiles) $(Echo) "Updating Makefile" $(Verb) $(MKDIR) $(@D) $(Verb) $(CP) -f $< $@ @@ -171,7 +171,7 @@ $(PROJ_OBJ_DIR)/Makefile% : $(PROJ_SRC_DIR)/Makefile% @case '$?' in \ *Makefile.rules) ;; \ *.in) ;; \ - *) $(Echo) "Updating $(@F)" ; \ + *) $(EchoCmd) "Updating $(@F)" ; \ $(MKDIR) $(@D) ; \ $(CP) -f $< $@ ;; \ esac diff --git a/llvm/bindings/ocaml/Makefile b/llvm/bindings/ocaml/Makefile index 5f1788e33ea4..5ae6fe06d16d 100644 --- a/llvm/bindings/ocaml/Makefile +++ b/llvm/bindings/ocaml/Makefile @@ -9,6 +9,7 @@ LEVEL := ../.. DIRS = llvm bitreader bitwriter analysis executionengine +ExtraMakefiles = $(PROJ_OBJ_DIR)/Makefile.ocaml ocamldoc: $(Verb) for i in $(DIRS) ; do \