From 1a920c7f9b05c57070add324899dae5b4562b963 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Jan 2013 08:45:42 +0000 Subject: [PATCH] Makefile.in: continue if Makefile unchanged * Makefile.in, win32/Makefile.sub ($(MKFILES)): continue if Makefile unchanged. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ Makefile.in | 4 +++- win32/Makefile.sub | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f225fcc6ae..c3a3ab141f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 10 17:45:39 2013 Nobuyoshi Nakada + + * Makefile.in, win32/Makefile.sub ($(MKFILES)): continue if Makefile + unchanged. + Thu Jan 10 16:31:20 2013 Shugo Maeda * vm_insnhelper.c (vm_search_super_method): raise a TypeError diff --git a/Makefile.in b/Makefile.in index e68976257b..45eb7c68e8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -251,8 +251,10 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in $(MKFILES): config.status + @[ -f Makefile ] && mv Makefile Makefile.old MAKE=$(MAKE) $(SHELL) ./config.status - @{ \ + @cmp Makefile Makefile.old > /dev/null 2>&1 && echo Makefile unchanged && exit 0; \ + { \ echo "all:; -@rm -f conftest.mk"; \ echo "conftest.mk: .force; @echo AUTO_REMAKE"; \ echo ".force:"; \ diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 3f62197cfb..651f54a043 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -448,8 +448,8 @@ test-rubyspec-precheck: $(MKFILES): $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak $(srcdir)/common.mk $(srcdir)/enc/Makefile.in $(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args) - @echo $(MKFILES) should be updated, re-run $(MAKE). - @exit 1 + @fc Makefile Makefile.old > nul && echo Makefile unchanged || \ + (echo $(MKFILES) was updated, re-run $(MAKE). & exit 1) RUBY_CONFIG_H = $(arch_hdrdir)/ruby/config.h CONFIG_H = ./.config.h.time