Moved unmatch arity check to depend file
To substitute suffixes and VPATH for nmake.
This commit is contained in:
parent
a3daf8e49a
commit
e0c56b45a4
@ -1,3 +1,11 @@
|
|||||||
|
$(DLLIB) $(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 "abort err unless /rb_define_method/ =~ err" \\
|
||||||
|
-e "FileUtils.touch(*ARGV)" $@
|
||||||
|
|
||||||
# AUTOGENERATED DEPENDENCIES START
|
# AUTOGENERATED DEPENDENCIES START
|
||||||
cxxanyargs.o: $(RUBY_EXTCONF_H)
|
cxxanyargs.o: $(RUBY_EXTCONF_H)
|
||||||
cxxanyargs.o: $(arch_hdrdir)/ruby/config.h
|
cxxanyargs.o: $(arch_hdrdir)/ruby/config.h
|
||||||
|
@ -24,16 +24,5 @@ end
|
|||||||
if ok
|
if ok
|
||||||
$srcs = %w[cxxanyargs.cpp]
|
$srcs = %w[cxxanyargs.cpp]
|
||||||
$cleanfiles << "failure.failed"
|
$cleanfiles << "failure.failed"
|
||||||
create_makefile("-test-/cxxanyargs") do |mk|
|
create_makefile("-test-/cxxanyargs")
|
||||||
mk << <<MK
|
|
||||||
|
|
||||||
cxxanyargs.#$OBJEXT: failure.failed
|
|
||||||
|
|
||||||
failure.failed: failure.cpp
|
|
||||||
\t$(Q)$(RUBY) -rfileutils \\
|
|
||||||
\t -e "err = IO.popen(%[$(MAKE) failure.#$OBJEXT], err:[:child, :out], &:read)" \\
|
|
||||||
\t -e "abort err unless /rb_define_method/ =~ err" \\
|
|
||||||
\t -e "FileUtils.touch(*ARGV)" $@
|
|
||||||
MK
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user