diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 15:58:40 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 15:58:40 +0000 |
commit | 7252dc0efc16111f1eed60d5e0810e5f8663b457 (patch) | |
tree | 8c580edd96b7caba6641c69414b5412f4d544150 | |
parent | 56b8f1d3ee9b4b4a73c1950740b3e80e6864480c (diff) |
Refresh Makefile.ocaml in objdir if it is modified in srcdir.
Patch by Erick Tryzelaar!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48149 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 4 | ||||
-rw-r--r-- | bindings/ocaml/Makefile | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 685569a702..e28ccf187a 100644 --- a/Makefile.rules +++ b/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/bindings/ocaml/Makefile b/bindings/ocaml/Makefile index 5f1788e33e..5ae6fe06d1 100644 --- a/bindings/ocaml/Makefile +++ b/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 \ |