[前][次][番号順一覧][スレッド一覧]

ruby-changes:31193

From: nobu <ko1@a...>
Date: Sun, 13 Oct 2013 12:49:52 +0900 (JST)
Subject: [ruby-changes:31193] nobu:r43272 (trunk): Makefile.in: generate for each makefiles

nobu	2013-10-13 12:49:48 +0900 (Sun, 13 Oct 2013)

  New Revision: 43272

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43272

  Log:
    Makefile.in: generate for each makefiles
    
    * Makefile.in (MKFILES): generate for each files for parallel build.

  Modified files:
    trunk/Makefile.in
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 43271)
+++ Makefile.in	(revision 43272)
@@ -258,16 +258,16 @@ install-cross: $(arch)-fake.rb $(RBCONFI https://github.com/ruby/ruby/blob/trunk/Makefile.in#L258
 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; \
+		@[ -f $@ ] && mv $@ $@.old
+		MAKE=$(MAKE) $(SHELL) ./config.status $@
+		@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
 		{ \
 		    echo "all:; -@rm -f conftest.mk"; \
 		    echo "conftest.mk: .force; @echo AUTO_REMAKE"; \
 		    echo ".force:"; \
 		} > conftest.mk || exit 1; \
 		$(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
-		{ echo "Makefile updated, restart."; exit 1; }
+		{ echo "$@ updated, restart."; exit 1; }
 
 uncommon.mk: $(srcdir)/common.mk
 		sed 's/{\$$([^(){}]*)[^{}]*}//g' $< > $@

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]