aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 61e683239e..9bc8d5b220 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -144,10 +144,15 @@ $(ConfigStatusScript): $(ConfigureScript)
$(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS) && \
$(ConfigStatusScript)
+#------------------------------------------------------------------------
+# If we're buildilng LLVM, then make sure the generated headers are Up2Dt
+#------------------------------------------------------------------------
+ifeq ($(LLVM_OBJ_ROOT),$(PROJ_OBJ_ROOT))
.PRECIOUS: $(FilesToConfigPATH)
$(FilesToConfigPATH) : $(LLVM_OBJ_ROOT)/% : $(LLVM_SRC_ROOT)/%.in
$(Echo) Regenerating $*
$(Verb) cd $(LLVM_OBJ_ROOT) && $(ConfigStatusScript) $*
+endif
#------------------------------------------------------------------------
# Make sure the configuration makefile is up to date