diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 13:46:07 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-12 13:46:07 -0700 |
commit | 8abd03d4485e187aed31b8ac908e5908dc2666cc (patch) | |
tree | e45814ebf76c1b437cff5cf0d02a14e85a1459c1 /crawl-ref/source/makefile | |
parent | 9025fd35d8db6942ac722eda80338bdaf5893dd7 (diff) | |
download | crawl-ref-8abd03d4485e187aed31b8ac908e5908dc2666cc.tar.gz crawl-ref-8abd03d4485e187aed31b8ac908e5908dc2666cc.zip |
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 <rvollmert@gmx.net>
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r-- | crawl-ref/source/makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |