allow for yacc, whether or not it really works

This commit is contained in:
K. Richard Pixley 1991-11-14 07:42:02 +00:00
parent da9471d47b
commit 31e54f5d6d
1 changed files with 3 additions and 4 deletions

View File

@ -169,10 +169,9 @@ STAGESTUFF = *.x *.x[ru] *.sc[ru] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OF
all: Makefile $(LD_PROG) ld.info
ldgram.h ldgram.c: ldgram.y
$(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y -o ldgram.c
# These are in case BISON is really yacc (which ignores -o).
if [ -f y.tab.c -a ! -f ldgram.c ]; then mv y.tab.c ldgram.c; else true ; fi
if [ -f y.tab.h -a ! -f ldgram.h ]; then mv y.tab.h ldgram.h; else true ; fi
$(BISON) $(BISONFLAGS) -d $(VPATH)/ldgram.y
mv -f y.tab.c ldgram.c
mv -f y.tab.h ldgram.h
ldlex.c: ldlex.l
lex -t $(VPATH)/ldlex.l >ldlex.c