From f054e040a12df4160c632039289b925b251fc81d Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 11 Oct 2013 15:19:00 +0100 Subject: Fix rule dependencies for lexer/parser generation Previously, if common/tikzparser.m existed but common/tikzparser.h did not, bison would not be re-run, and the build would fail elsewhere with an error about not finding tikzparser.h. The same would be true of the tikzlexer files. Issue #15 --- tikzit/src/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tikzit/src/Makefile.am') diff --git a/tikzit/src/Makefile.am b/tikzit/src/Makefile.am index 2f9ac95..ffd05bf 100644 --- a/tikzit/src/Makefile.am +++ b/tikzit/src/Makefile.am @@ -124,12 +124,14 @@ tikzit_LDADD = tikzit.res CLEANFILES = tikzit.res endif -common/tikzlexer.m: common/tikzlexer.lm - $(AM_V_GEN)$(LEX) -o $@ $^ +common/tikzlexer.m common/tikzlexer.h: common/tikzlexer.lm + $(AM_V_GEN)$(LEX) -o common/tikzlexer.m $^ +# ordering hack for parallel builds common/tikzlexer.h: common/tikzlexer.m -common/tikzparser.m: common/tikzparser.ym - $(AM_V_GEN)$(YACC) --defines=common/tikzparser.h --output-file=$@ $^ +common/tikzparser.m common/tikzparser.h: common/tikzparser.ym + $(AM_V_GEN)$(YACC) --defines=common/tikzparser.h --output-file=common/tikzparser.m $^ +# ordering hack for parallel builds common/tikzparser.h: common/tikzparser.m gtk/icondata.m: $(ICONFILES) -- cgit v1.2.3