gengtype-{lex,yacc}.c rules broken

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Mon Jan 13 18:56:00 GMT 2003


 > However, if you have a spare minute...
 > 
 > > +	 $(BISON) $(BISONFLAGS) -d -o gengtype-yacc.c $$s/gengtype-yacc.y || \
 > > +		      { rm -f gengtype-yacc.c && false; }
 >  
 > I'd much rather generate a file with a temporary name (say .cT) and
 > then rename it than removing it on failure. 

Please not .cT, rather use $$$$ (becomes $$ to sh) so it's unique.
Otherwise simultaneous builds from the same source tree clobber each
other.

E.e. see the rule for c-parse.c in Makefile.in or java/parse.c in
java/Make-lang.in.

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc-patches mailing list