about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-15T16·02-0500
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-18T16·31+0100
commita7e70518b8d0cb9a72cb3733b563b49caf922966 (patch)
tree5cd8ff4c7a36b7bcb106260137c82c6cac5d0762 /src/libexpr
parent70a558e20250f7c865fd36c1c678192fe29d088f (diff)
lexer-tab.o and parser-tab.o require each other's headers
Diffstat (limited to 'src/libexpr')
-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 431f84b0999e..b3b4086916ef 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