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