From: K. Richard Pixley Date: Thu, 14 Nov 1991 07:42:02 +0000 (+0000) Subject: allow for yacc, whether or not it really works X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31e54f5d6dfdeab330c8d299a5fd5ef2158368bf;p=binutils-gdb.git allow for yacc, whether or not it really works --- diff --git a/ld/Makefile.in b/ld/Makefile.in index 66a2cdb45f9..0e052b6d928 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -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