summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 07:11:33 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 07:11:33 +0000
commit93bf5472587e08f4bfdfce008bde3f61fdf0ed51 (patch)
tree7f5e8f2b2ec55e7be79877e173502be4bf7537ec /ext/ripper
parent84d9d4857e94418dba1f9e5358757dec2a9ce9a9 (diff)
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
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/depend5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend
index 3aa7986..77fb223 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 > $@