aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules4
-rw-r--r--bindings/ocaml/Makefile1
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 685569a..e28ccf1 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 5f1788e..5ae6fe0 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 \