diff --git a/Makefile.rules b/Makefile.rules index 3df4811bf89..68d870b7a97 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -732,14 +732,15 @@ $(OBJDIR)/%.bc: %.ll $(OBJDIR)/.dir $(LLVMAS) ifdef TARGET TDFILES := $(strip $(wildcard $(BUILD_SRC_DIR)/*.td) $(LLVM_SRC_ROOT)/lib/Target/Target.td) +INCFILES := $(filter %.inc,$(BUILT_SOURCES)) -$(BUILT_SOURCES): $(TDFILES) +$(INCFILES) : $(TBLGEN) $(TDFILES) -%GenRegisterNames.inc : %.td +%GenRegisterNames.inc : %.td @echo "Building $(