From: ellson Date: Mon, 10 Jan 2005 18:59:42 +0000 (+0000) Subject: fix build race condition with yacc output files - use same technique as other yacc... X-Git-Tag: LAST_LIBGRAPH~32^2~8106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43ea145d899e2ac09afcdaf2b3deb904a1672065;p=graphviz fix build race condition with yacc output files - use same technique as other yacc uses in graphviz --- diff --git a/cmd/lefty/dot2l/Makefile.am b/cmd/lefty/dot2l/Makefile.am index 5b60863a6..f26aafdde 100644 --- a/cmd/lefty/dot2l/Makefile.am +++ b/cmd/lefty/dot2l/Makefile.am @@ -13,9 +13,14 @@ libdot2l_la_SOURCES = dot2l.c dotlex.c dotparse.y dottrie.c dotlex.o dotlex.lo : dotparse.h -dotparse.c : dotparse.y +dotparse.c : y.output + cat < y.tab.c > dotparse.c -dotparse.h : dotparse.c +dotparse.h : y.output + cat < y.tab.h > dotparse.h + +y.output: $(top_srcdir)/cmd/lefty/dot2l/dotparse.y + @YACC@ -dv $(top_srcdir)/cmd/lefty/dot2l/dotparse.y # this is a home-made tool # trie.c : trie_input