From 86172eb0c48b92654fbaefe2b75c0806b8fe5531 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 1 Feb 2002 11:48:46 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49393 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/Makefile.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gcc/Makefile.in') 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" \ -- cgit v1.2.1