aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/local.mk
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-15 11:02:47 -0500
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-18 17:31:30 +0100
commita7e70518b8d0cb9a72cb3733b563b49caf922966 (patch)
tree5cd8ff4c7a36b7bcb106260137c82c6cac5d0762 /src/libexpr/local.mk
parent70a558e20250f7c865fd36c1c678192fe29d088f (diff)
lexer-tab.o and parser-tab.o require each other's headers
Diffstat (limited to 'src/libexpr/local.mk')
-rw-r--r--src/libexpr/local.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk
index 431f84b09..b3b408691 100644
--- a/src/libexpr/local.mk
+++ b/src/libexpr/local.mk
@@ -19,6 +19,10 @@ $(d)/parser-tab.cc $(d)/parser-tab.hh: $(d)/parser.y
$(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l
$(trace-gen) flex --outfile $(libexpr_DIR)/lexer-tab.cc --header-file=$(libexpr_DIR)/lexer-tab.hh $<
+$(d)/lexer-tab.o: $(d)/lexer-tab.hh $(d)/parser-tab.hh
+
+$(d)/parser-tab.o: $(d)/lexer-tab.hh $(d)/parser-tab.hh
+
clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh
dist-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh