ruby-changes:65613
From: Nobuyoshi <ko1@a...>
Date: Sun, 21 Mar 2021 17:58:26 +0900 (JST)
Subject: [ruby-changes:65613] cb396d4214 (master): Share variables defined in common GNUmakefile also in cygwin/mingw
https://git.ruby-lang.org/ruby.git/commit/?id=cb396d4214 From cb396d4214f7d1c60a9bb45420ef647468b8da2e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 21 Mar 2021 17:53:20 +0900 Subject: Share variables defined in common GNUmakefile also in cygwin/mingw --- cygwin/GNUmakefile.in | 4 +--- template/GNUmakefile.in | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in index 8609881..095d9d8 100644 --- a/cygwin/GNUmakefile.in +++ b/cygwin/GNUmakefile.in @@ -33,9 +33,7 @@ endif https://github.com/ruby/ruby/blob/trunk/cygwin/GNUmakefile.in#L33 WPROGRAM = $(RUBYW_INSTALL_NAME)$(EXEEXT) --include uncommon.mk - -include $(srcdir)/defs/gmake.mk +include $(srcdir)/template/GNUmakefile.in SOLIBS := $(DLL_BASE_NAME).res.@OBJEXT@ $(SOLIBS) override EXTOBJS += $(if $(filter-out $(RUBYW_INSTALL_NAME),$(@:$(EXEEXT)=)),$(RUBY_INSTALL_NAME),$(@:$(EXEEXT)=)).res.$(OBJEXT) diff --git a/template/GNUmakefile.in b/template/GNUmakefile.in index 74fbe84..e2f2d1a 100644 --- a/template/GNUmakefile.in +++ b/template/GNUmakefile.in @@ -1,6 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/template/GNUmakefile.in#L1 gnumake = yes +ifeq ($(filter Makefile,$(MAKEFILE_LIST)),) include Makefile + +GNUmakefile: $(srcdir)/template/GNUmakefile.in +endif + override silence := $(if $(findstring s,$(firstword $(MFLAGS))),yes,no) ifeq ($(HAVE_BASERUBY),yes) @@ -10,5 +15,3 @@ endif https://github.com/ruby/ruby/blob/trunk/template/GNUmakefile.in#L15 include $(srcdir)/defs/universal.mk -include uncommon.mk include $(srcdir)/defs/gmake.mk - -GNUmakefile: $(srcdir)/template/GNUmakefile.in -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/