summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 17:05:52 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 17:05:52 +0900
commit04c53a1d03130b5cd4a1eea35cab92003a4d0909 (patch)
treecd9924e0e0cf1e983448eb2ceb6862aad5ab9b24 /ext
parentd56a3c063532906158cc0427a42133fadda75cde (diff)
Get rid of embedding make command line
NMAKE sets MAKE to the full path name, which includes spaces by the default installation.
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)