nobu / ruby-lang.org wrote: > Hi, > > At Sun, 9 Apr 2006 01:51:38 +0900, > Robin Stocker wrote in [ruby-core:07688]: >> +ifeq ($(firstword $(YACC)), bison) >> + cp $< $<.tmp >> +else >> +# If we don't have a bison yacc, strip the literal strings >> + sed '/^%token/ s|"[^"]*"||' $< > $<.tmp >> +endif > > This depends on GNU make? I had a look at the manual and it is indeed listed as an invention of GNU make, see "Conditional execution" here: http://www.gnu.org/software/make/manual/html_node/Features.html What if it is replaced with this?: cp $< $<.tmp echo $(YACC) | grep -q bison || sed '/^%token/ s|"[^"]*"||' $< > $<.tmp Regards, Robin