Commit dcd1c2b8 by Andreas Schwab Committed by Andreas Schwab

Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to $(parsedir), just move…

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
parent eb4b5f93
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> 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
* aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
......
...@@ -2111,20 +2111,23 @@ gengtype-yacc.o : $(parsedir)/gengtype-yacc.c gengtype.h $(BCONFIG_H) $(SYSTEM_H ...@@ -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. # The sed command works around a bug in flex-2.5.4.
$(parsedir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l $(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-$$$$ ; \ sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \
if test $$? -eq 0 ; then \ if test $$? -eq 0 ; then \
mv -f g-$$$$ gengtype-lex.c ; \ mv -f g-$$$$ $(parsedir)/gengtype-lex.c ; \
else \ else \
rm -f g-$$$$.* ; \ rm -f g-$$$$ ; \
false ; \ false ; \
fi fi
$(parsedir)/gengtype-yacc.c: $(srcdir)/gengtype-yacc.y $(parsedir)/gengtype-yacc.c: $(srcdir)/gengtype-yacc.y
(cd $(parsedir) && \ if $(BISON) $(BISONFLAGS) -d -o g-yacc.$$$$.c $(srcdir)/gengtype-yacc.y; then \
$(BISON) $(BISONFLAGS) -d -o gengtype-yacc.c $(srcdir)/gengtype-yacc.y || \ mv -f g-yacc.$$$$.h $(parsedir)/gengtype-yacc.h; \
( rm -f $@ && false ) ) mv -f g-yacc.$$$$.c $(parsedir)/gengtype-yacc.c; \
else \
rm -f g-yacc.$$$$.*; \
false; \
fi
genconditions$(build_exeext) : genconditions.o $(BUILD_EARLY_SUPPORT) \ genconditions$(build_exeext) : genconditions.o $(BUILD_EARLY_SUPPORT) \
$(BUILD_RTL) $(BUILD_ERRORS) $(BUILD_LIBDEPS) $(BUILD_RTL) $(BUILD_ERRORS) $(BUILD_LIBDEPS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment