scanner.c includes (depends on) grammar.h so mark it so in the Makefiles.

svn path=/trunk/; revision=45020
This commit is contained in:
Jeff Morriss 2012-09-20 03:04:48 +00:00
parent 5983528b69
commit 8f0d5f99c6
2 changed files with 9 additions and 6 deletions

View File

@ -72,6 +72,7 @@ EXTRA_DIST = \
RUNLEX=$(top_srcdir)/tools/runlex.sh
scanner_lex.h : scanner.c
scanner.c: grammar.h
LEMON=../../tools/lemon

View File

@ -57,6 +57,8 @@ scanner_lex.h : scanner.c
scanner.obj : scanner.c grammar.h
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c scanner.c
scanner.c: grammar.h
grammar.h : grammar.c
grammar.c : $(LEMON)\lemon.exe $(LEMON)\lempar.c grammar.lemon
$(LEMON)\lemon.exe t=$(LEMON)\lempar.c grammar.lemon