summaryrefslogtreecommitdiff
path: root/support/tools/TableGen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'support/tools/TableGen/Makefile')
-rw-r--r--support/tools/TableGen/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/tools/TableGen/Makefile b/support/tools/TableGen/Makefile
index 21c68c6b02..98417d2b75 100644
--- a/support/tools/TableGen/Makefile
+++ b/support/tools/TableGen/Makefile
@@ -6,6 +6,13 @@ USEDLIBS = support.a
include $(LEVEL)/Makefile.common
+#
+# Make the source file depend on the header file. In this way, dependencies
+# (which depend on the source file) won't get generated until bison is done
+# generating the C source and header files for the parser.
+#
+FileLexer.cpp: FileParser.h
+
clean::
-rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-rm -f FileParser.output