about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-04T18·02+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-04T18·02+0200
commit9d65287b91afa5b64c19f64dda78f8385d6820f0 (patch)
tree67edf357f7eeed1cb3987e6efac701c096a9ae7b /src/libexpr
parent9472b4157d7d8432ddf5eb77b3a88e00dcb4e61a (diff)
Fix dependency ordering
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/local.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk
index 75a0e185e369..620a03538bcd 100644
--- a/src/libexpr/local.mk
+++ b/src/libexpr/local.mk
@@ -15,16 +15,14 @@ libexpr_LDFLAGS = -ldl
 # because inline functions in libexpr's header files call libgc.
 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
 	$(trace-gen) bison -v -o $(libexpr_DIR)/parser-tab.cc $< -d
 
 $(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