summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-07 01:39:10 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-07 01:39:10 (GMT)
commite4e82e50abc795876b8eba99517c8209fdf1f2d7 (patch)
tree787ea798f704d2e706b68fa0b2013a297c4fae45 /defs
parent5f5d915512361c395b2b462443a68ac21ab9eeac (diff)
common.mk: reinstall target
* common.mk (reinstall): new target. * defs/gmake.mk (install, uninstall): can't run parallel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 67dce0b..4e38f38 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -15,3 +15,12 @@ yes-test-all yes-test-ruby: $(filter-out %test-all %test-ruby check%,$(TEST_TARG
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