[cfe-commits] r86912 - /cfe/trunk/include/clang/Basic/Makefile

Daniel Dunbar daniel at zuster.org
Wed Nov 11 16:41:49 PST 2009


Author: ddunbar
Date: Wed Nov 11 18:41:49 2009
New Revision: 86912

URL: http://llvm.org/viewvc/llvm-project?rev=86912&view=rev
Log:
Fix Makefile dependency bug with out-of-dir builds.

Modified:
    cfe/trunk/include/clang/Basic/Makefile

Modified: cfe/trunk/include/clang/Basic/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Makefile?rev=86912&r1=86911&r2=86912&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/Makefile (original)
+++ cfe/trunk/include/clang/Basic/Makefile Wed Nov 11 18:41:49 2009
@@ -9,12 +9,14 @@
 
 include $(LEVEL)/Makefile.common
 
+INPUT_TDS = $(wildcard $(PROJ_SRC_DIR)/Diagnostic*.td)
+
 $(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN)
 	$(Echo) "Building Clang $(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) diagnostic tables with tblgen"
 	$(Verb) -$(MKDIR) $(@D)
 	$(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
 
-$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td DiagnosticGroups.td $(wildcard Diagnostic*.td) $(TBLGEN)
+$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td DiagnosticGroups.td $(INPUT_TDS) $(TBLGEN)
 	$(Echo) "Building Clang diagnostic groups with tblgen"
 	$(Verb) -$(MKDIR) $(@D)
 	$(Verb) $(TableGen) -gen-clang-diag-groups -o $(call SYSPATH, $@) $<





More information about the cfe-commits mailing list