This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gengtype-{lex,yacc}.c rules broken


 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]