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

Chris Lattner sabre at nondot.org
Wed Apr 15 13:55:32 PDT 2009


Author: lattner
Date: Wed Apr 15 15:55:31 2009
New Revision: 69220

URL: http://llvm.org/viewvc/llvm-project?rev=69220&view=rev
Log:
generate diagnostic group tables, this requires llvm r69219 or later.

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=69220&r1=69219&r2=69220&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/Makefile (original)
+++ cfe/trunk/include/clang/Basic/Makefile Wed Apr 15 15:55:31 2009
@@ -2,8 +2,8 @@
 BUILT_SOURCES = DiagnosticAnalysisKinds.inc DiagnosticASTKinds.inc \
 	DiagnosticCommonKinds.inc DiagnosticDriverKinds.inc \
 	DiagnosticFrontendKinds.inc DiagnosticLexKinds.inc \
-	DiagnosticParseKinds.inc DiagnosticSemaKinds.inc
-#        DiagnosticGroups.inc
+	DiagnosticParseKinds.inc DiagnosticSemaKinds.inc \
+        DiagnosticGroups.inc
 
 TABLEGEN_INC_FILES_COMMON = 1
 
@@ -11,11 +11,12 @@
 
 $(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) -$(MKDIR) $(@D)
 	$(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
 
-
-
-# DiagnosticGroups.inc
+$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td $(wildcard Diagnostic*Kinds.td) $(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