summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/cxxanyargs/depend5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/-test-/cxxanyargs/depend b/ext/-test-/cxxanyargs/depend
index a2c74a8b1d..ad8260a55f 100644
--- a/ext/-test-/cxxanyargs/depend
+++ b/ext/-test-/cxxanyargs/depend
@@ -2,9 +2,10 @@ $(TARGET_SO) $(STATIC_LIB): failure.failed
failure.failed: failure.cpp cxxanyargs.o
$(Q)$(RUBY) -rfileutils \
- -e "err = IO.popen(%[$(MAKE) failure.o], err:[:child, :out], &:read)" \
+ -e "t = ARGV.shift" \
+ -e "err = IO.popen(ARGV, err:[:child, :out], &:read)" \
-e "abort err unless /rb_define_method/ =~ err" \
- -e "FileUtils.touch(*ARGV)" $@
+ -e "FileUtils.touch(t)" $@ $(MAKE) failure.o
# AUTOGENERATED DEPENDENCIES START
cxxanyargs.o: $(RUBY_EXTCONF_H)