ruby-changes:63675
From: Nobuyoshi <ko1@a...>
Date: Sat, 21 Nov 2020 23:20:06 +0900 (JST)
Subject: [ruby-changes:63675] ece917bab3 (master): Added rubyspec-capiext target
https://git.ruby-lang.org/ruby.git/commit/?id=ece917bab3 From ece917bab38248e1fd1974e597d66df8e33d862e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 21 Nov 2020 23:15:26 +0900 Subject: Added rubyspec-capiext target This target builds extensions for rubyspec optional C-API tests. diff --git a/defs/gmake.mk b/defs/gmake.mk index 31af44a..ec9575a 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -383,3 +383,13 @@ update-deps: https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L383 $(RMDIR) $(dir $(deps_dir)) git --git-dir=$(GIT_DIR) merge --no-edit --ff-only $(update_deps) git --git-dir=$(GIT_DIR) branch --delete $(update_deps) + +# order-only-prerequisites doesn't work for $(RUBYSPEC_CAPIEXT) +# because the same named directory exists in the source tree. +$(RUBYSPEC_CAPIEXT)/%.$(DLEXT): $(srcdir)/$(RUBYSPEC_CAPIEXT)/%.c $(srcdir)/$(RUBYSPEC_CAPIEXT)/rubyspec.h $(RUBY_H_INCLUDES) + $(ECHO) building $@ + $(Q) $(MAKEDIRS) $(@D) + $(Q) $(DLDSHARED) $(DLDFLAGS) $(ARCH_FLAG) $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ $< + $(Q) $(RMALL) $@.* +rubyspec-capiext: $(patsubst %.c,$(RUBYSPEC_CAPIEXT)/%.$(DLEXT),$(notdir $(wildcard $(srcdir)/$(RUBYSPEC_CAPIEXT)/*.c))) + @ $(NULLCMD) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/