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

ruby-changes:27566

From: nobu <ko1@a...>
Date: Thu, 7 Mar 2013 10:39:25 +0900 (JST)
Subject: [ruby-changes:27566] nobu:r39618 (trunk): common.mk: reinstall target

nobu	2013-03-07 10:39:10 +0900 (Thu, 07 Mar 2013)

  New Revision: 39618

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

  Log:
    common.mk: reinstall target
    
    * common.mk (reinstall): new target.
    
    * defs/gmake.mk (install, uninstall): can't run parallel.

  Modified files:
    trunk/common.mk
    trunk/defs/gmake.mk

Index: defs/gmake.mk
===================================================================
--- defs/gmake.mk	(revision 39617)
+++ defs/gmake.mk	(revision 39618)
@@ -15,3 +15,12 @@ yes-test-all yes-test-ruby: $(filter-out https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L15
 endif
 
 $(TEST_TARGETS): $(TEST_DEPENDS)
+
+ifneq ($(if $(filter install,$(MAKECMDGOALS)),$(filter uninstall,$(MAKECMDGOALS))),)
+install-targets := $(filter install uninstall,$(MAKECMDGOALS))
+$(word 1,$(install-targets)): $(word 0,$(install-targets))
+endif
+
+ifneq ($(filter reinstall,$(MAKECMDGOALS)),)
+install: uninstall
+endif
Index: common.mk
===================================================================
--- common.mk	(revision 39617)
+++ common.mk	(revision 39618)
@@ -326,6 +326,8 @@ post-no-install-all:: post-no-install-lo https://github.com/ruby/ruby/blob/trunk/common.mk#L326
 uninstall: $(INSTALLED_LIST)
 	$(Q)$(SUDO) $(MINIRUBY) $(srcdir)/tool/rbuninstall.rb --destdir=$(DESTDIR) $(INSTALLED_LIST)
 
+reinstall: uninstall install
+
 what-where-nodoc: no-install-nodoc
 no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
 pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext

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

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