summaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-28 16:26:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-28 16:26:25 +0000
commit5e0a9749147bcbe523e18747a90da78eed7c234c (patch)
tree52461244dd867e3c997d19893633decd6d1cfdee /common.mk
parentfab33779159ea95ea43c1e2abde52fd9693a5397 (diff)
downloadruby-5e0a9749147bcbe523e18747a90da78eed7c234c.tar.gz
ruby-5e0a9749147bcbe523e18747a90da78eed7c234c.tar.xz
ruby-5e0a9749147bcbe523e18747a90da78eed7c234c.zip
* common.mk (up): force to update revision.h.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index bc78909c3..f22781c8e 100644
--- a/common.mk
+++ b/common.mk
@@ -726,7 +726,7 @@ PRELUDES = prelude.c miniprelude.c golf_prelude.c
docs:
$(BASERUBY) -I$(srcdir) $(srcdir)/tool/makedocs.rb $(INSNS2VMOPT)
-$(srcdir)/revision.h:
+$(srcdir)/revision.h: $(REVISION_FORCE)
@set LC_MESSAGES=C
-@$(SET_LC_MESSAGES) $(VCS) info "$(@D)" | \
sed -n "s/.*Rev:/#define RUBY_REVISION/p" > "$@.tmp"
@@ -796,7 +796,7 @@ dist: $(PROGRAM)
up:
@$(VCS) up "$(srcdir)"
- -@$(MAKE) $(MFLAGS) "$(srcdir)/revision.h"
+ -@$(MAKE) $(MFLAGS) REVISION_FORCE=PHONY "$(srcdir)/revision.h"
help:
@echo " Makefile of Ruby"