aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-11-14 07:42:02 +0000
committerK. Richard Pixley <rich@cygnus>1991-11-14 07:42:02 +0000
commit31e54f5d6dfdeab330c8d299a5fd5ef2158368bf (patch)
treefafc23bb6750bed99a6c8d0890c7a20090af802c /ld
parentda9471d47ba9c50c19a282302fbe709676709194 (diff)
downloadgdb-31e54f5d6dfdeab330c8d299a5fd5ef2158368bf.zip
gdb-31e54f5d6dfdeab330c8d299a5fd5ef2158368bf.tar.gz
gdb-31e54f5d6dfdeab330c8d299a5fd5ef2158368bf.tar.bz2
allow for yacc, whether or not it really works
Diffstat (limited to 'ld')
-rw-r--r--ld/Makefile.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 66a2cdb..0e052b6 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