From 8abd03d4485e187aed31b8ac908e5908dc2666cc Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 12 Oct 2009 13:46:07 -0700 Subject: makefile: fix dependencies for levcomp.lex.cc It was occasionally possible that levcomp.lex.cc was compiled before levcomp.tab.cc was generated, causing this build error: YACC levcomp.tab.c LEX levcomp.lex.cc CXX util/levcomp.lex.o levcomp.lpp:13:25: error: levcomp.tab.h: No such file or directory CXX util/levcomp.tab.o levcomp.lpp: In function 'void clean()': Adding levcomp.tab.cc as a dependency of levcomp.lex.cc fixes the issue. Reported-by: Robert Vollmert Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 2653e53d22..450ee573c5 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -569,7 +569,7 @@ prebuildyacc: $(UTIL)levcomp.tab.cc $(UTIL)levcomp.tab.h $(UTIL)levcomp.lex.cc $(UTIL)levcomp.tab.cc: $(UTIL)levcomp.ypp +@$(MAKE) -C $(UTIL) levcomp.tab.cc -$(UTIL)levcomp.lex.cc: $(UTIL)levcomp.lpp +$(UTIL)levcomp.lex.cc: $(UTIL)levcomp.lpp $(UTIL)levcomp.tab.cc +@$(MAKE) -C $(UTIL) levcomp.lex.cc else -- cgit v1.2.3-54-g00ecf