diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 00:41:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 00:41:49 +0000 |
commit | 1144c218f5d74f2270ebcd5ddd82dc472790eaef (patch) | |
tree | ea8789ff4694af049fe72f9fc3d0599093a342ee | |
parent | 010c3f531a634d0b6d56f433323f7283f684c1d0 (diff) |
Fix Makefile dependency bug with out-of-dir builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86912 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/Makefile b/include/clang/Basic/Makefile index 6ed5fefb7e..b85eb0725e 100644 --- a/include/clang/Basic/Makefile +++ b/include/clang/Basic/Makefile @@ -9,12 +9,14 @@ TABLEGEN_INC_FILES_COMMON = 1 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, $@) $< |