diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-01 11:48:46 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-01 11:48:46 +0000 |
commit | 86172eb0c48b92654fbaefe2b75c0806b8fe5531 (patch) | |
tree | b990213648d9eadbcb48715fd655bfcee42fc921 /gcc/objc/Make-lang.in | |
parent | 557acce79b05c7f74e04744ff857a8dd54c88eb3 (diff) | |
download | gcc-86172eb0c48b92654fbaefe2b75c0806b8fe5531.tar.gz |
* 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
Diffstat (limited to 'gcc/objc/Make-lang.in')
-rw-r--r-- | gcc/objc/Make-lang.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index 602948e872a..bc5f709c579 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -1,4 +1,4 @@ -# Top level makefile fragment for GNU Objective-C +# Top level -*- makefile -*- fragment for GNU Objective-C # Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -73,8 +73,13 @@ objc-parse.o : $(srcdir)/objc/objc-parse.c \ po-generated: $(srcdir)/objc/objc-parse.c $(srcdir)/objc/objc-parse.c : $(srcdir)/objc/objc-parse.y cd $(srcdir)/objc; \ - $(BISON) $(BISONFLAGS) -o op$$$$.c objc-parse.y ; \ - mv -f op$$$$.c objc-parse.c + if $(BISON) $(BISONFLAGS) -o op$$$$.c objc-parse.y ; then \ + test -f op$$$$.output && mv -f op$$$$.output objc-parse.output ; \ + mv -f op$$$$.c objc-parse.c ; \ + else \ + rm -f op$$$$.* ; \ + false ; \ + fi $(srcdir)/objc/objc-parse.y: $(srcdir)/c-parse.in echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y |