about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libexpr/local.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk
index daa3258f0d3c..78c8b0deae60 100644
--- a/src/libexpr/local.mk
+++ b/src/libexpr/local.mk
@@ -20,10 +20,14 @@ libexpr_LDFLAGS_PROPAGATED = $(BDW_GC_LIBS)
 
 libexpr_ORDER_AFTER := $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh
 
-$(d)/parser-tab.cc $(d)/parser-tab.hh: $(d)/parser.y
+$(d)/parser-tab.hh: $(d)/parser-tab.cc
+
+$(d)/parser-tab.cc: $(d)/parser.y
 	$(trace-gen) bison -v -o $(libexpr_DIR)/parser-tab.cc $< -d
 
-$(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l
+$(d)/lexer-tab.hh: $(d)/lexer-tab.cc
+
+$(d)/lexer-tab.cc: $(d)/lexer.l
 	$(trace-gen) flex --outfile $(libexpr_DIR)/lexer-tab.cc --header-file=$(libexpr_DIR)/lexer-tab.hh $<
 
 clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh