diff options
author | Jason Merrill <jason@redhat.com> | 2002-02-01 06:48:46 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-02-01 06:48:46 -0500 |
commit | b88c0704cf87c13c78f1a0741704b4e41897c195 (patch) | |
tree | b990213648d9eadbcb48715fd655bfcee42fc921 /gcc/Makefile.in | |
parent | ac282977f6122a328b4bed3c9b14f39086ddea34 (diff) | |
download | gcc-b88c0704cf87c13c78f1a0741704b4e41897c195.tar.gz |
Makefile.in (c-parse.c): Handle .output file.
* Makefile.in (c-parse.c): Handle .output file.
* objc/Make-lang.in (objc-parse.c): Likewise.
* cp/Make-lang.in (parse.c): Handle .output file.
From-SVN: r49393
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 835bebc6655..f0f2b646371 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1128,8 +1128,15 @@ c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h $(GGC_H) intl.h \ -c $(srcdir)/c-parse.c $(OUTPUT_OPTION) $(srcdir)/c-parse.c: $(srcdir)/c-parse.y - (cd $(srcdir) && $(BISON) $(BISONFLAGS) -o c-p$$$$.c c-parse.y && \ - mv -f c-p$$$$.c c-parse.c) + cd $(srcdir) && \ + if $(BISON) $(BISONFLAGS) -o c-p$$$$.c c-parse.y; then \ + test -f c-p$$$$.output && mv -f c-p$$$$.output c-parse.output ; \ + mv -f c-p$$$$.c c-parse.c ; \ + else \ + rm -f c-p$$$$.* ; \ + false ; \ + fi + $(srcdir)/c-parse.y: c-parse.in echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \ |