From 93bf5472587e08f4bfdfce008bde3f61fdf0ed51 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 7 Jan 2016 07:11:33 +0000 Subject: [PATCH] fix r53448 avoid mkmf.rb's suffix rule scanner (lib/mkmf.rb:2085), it detects suffix rule from depend file and adds .SUFFIXES. It breaks bsdmake to generate check file named ".eventids2.check". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/ripper/depend | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/ripper/depend b/ext/ripper/depend index 3aa7986a23..77fb223f87 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -2,6 +2,7 @@ GEN = $(srcdir)/tools/generate.rb SRC1 = $(top_srcdir)/parse.y SRC2 = $(srcdir)/eventids2.c BISON = bison +EVENTIDS2_CHECK = .eventids2.check .SUFFIXES: .y @@ -24,9 +25,9 @@ ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y $(Q) $(RUBY) $(srcdir)/tools/preproc.rb ripper.tmp.y --output=$@ $(Q) $(RM) ripper.tmp.y -check: .eventids2.check +check: $(EVENTIDS2_CHECK) -.eventids2.check: $(GEN) $(SRC1) $(SRC2) +$(EVENTIDS2_CHECK): $(GEN) $(SRC1) $(SRC2) $(ECHO) checking $(SRC1) and $(SRC2) $(Q) $(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2) @exit > $@