summaryrefslogtreecommitdiff
path: root/ext/ripper/depend
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ripper/depend')
-rw-r--r--ext/ripper/depend5
1 files 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 > $@