diff options
author | Andreas Schwab <schwab@suse.de> | 2003-01-13 20:37:28 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2003-01-13 20:37:28 +0000 |
commit | dcd1c2b8fe5ab482367c4d94a79a4cde04ffd2e1 (patch) | |
tree | b1a8ad1f546937550f8a9a99af0e8ba9746a949a /gcc | |
parent | eb4b5f93f9e7e60c72835c9564a69c5740012edc (diff) | |
download | gcc-dcd1c2b8fe5ab482367c4d94a79a4cde04ffd2e1.zip gcc-dcd1c2b8fe5ab482367c4d94a79a4cde04ffd2e1.tar.gz gcc-dcd1c2b8fe5ab482367c4d94a79a4cde04ffd2e1.tar.bz2 |
Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to $(parsedir), just move the temporary file at the end.
* Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
$(parsedir), just move the temporary file at the end.
($(parsedir)/gengtype-yacc.c): Likewise.
From-SVN: r61257
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/Makefile.in | 17 |
2 files changed, 16 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f37210c..d720771 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-01-13 Andreas Schwab <schwab@suse.de> + + * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to + $(parsedir), just move the temporary file at the end. + ($(parsedir)/gengtype-yacc.c): Likewise. + 2003-01-13 Alexandre Oliva <aoliva@redhat.com> * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 57e949a..8039bac 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2111,20 +2111,23 @@ gengtype-yacc.o : $(parsedir)/gengtype-yacc.c gengtype.h $(BCONFIG_H) $(SYSTEM_H # The sed command works around a bug in flex-2.5.4. $(parsedir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l - cd $(parsedir) && \ - $(FLEX) $(FLEXFLAGS) -t -o$@ $(srcdir)/gengtype-lex.l | \ + $(FLEX) $(FLEXFLAGS) -t -o- $(srcdir)/gengtype-lex.l | \ sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \ if test $$? -eq 0 ; then \ - mv -f g-$$$$ gengtype-lex.c ; \ + mv -f g-$$$$ $(parsedir)/gengtype-lex.c ; \ else \ - rm -f g-$$$$.* ; \ + rm -f g-$$$$ ; \ false ; \ fi $(parsedir)/gengtype-yacc.c: $(srcdir)/gengtype-yacc.y - (cd $(parsedir) && \ - $(BISON) $(BISONFLAGS) -d -o gengtype-yacc.c $(srcdir)/gengtype-yacc.y || \ - ( rm -f $@ && false ) ) + if $(BISON) $(BISONFLAGS) -d -o g-yacc.$$$$.c $(srcdir)/gengtype-yacc.y; then \ + mv -f g-yacc.$$$$.h $(parsedir)/gengtype-yacc.h; \ + mv -f g-yacc.$$$$.c $(parsedir)/gengtype-yacc.c; \ + else \ + rm -f g-yacc.$$$$.*; \ + false; \ + fi genconditions$(build_exeext) : genconditions.o $(BUILD_EARLY_SUPPORT) \ $(BUILD_RTL) $(BUILD_ERRORS) $(BUILD_LIBDEPS) |