summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-17 08:43:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-17 08:43:19 +0000
commit695a862e032e12bfd364a18c8b00c96a63b538b8 (patch)
treec7c3e1d26c00fc7add2e6daa6f3749d7997d7b6a /common.mk
parentd31f88d7f13c688f98e11054d089f90501d4f765 (diff)
* common.mk (install-doc): reverted.
* instruby.rb: stores file name list without destdir prefix. * lib/rdoc/generators/ri_generator.rb: do not chdir twice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 311dfd0..ad4d064 100644
--- a/common.mk
+++ b/common.mk
@@ -8,6 +8,7 @@ STATIC_RUBY = static-ruby
EXTCONF = extconf.rb
RBCONFIG = ./.rbconfig.time
+RDOCOUT = $(EXTOUT)/rdoc
DMYEXT = dmyext.$(OBJEXT)
MAINOBJ = main.$(OBJEXT)
@@ -217,6 +218,18 @@ dont-install-man:
$(MINIRUBY) $(srcdir)/instruby.rb -n $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
post-no-install-man::
+install-doc: rdoc pre-install-doc do-install-doc post-install-doc
+do-install-doc: $(PROGRAM)
+ $(RUNRUBY) -run -e cp -- -p -r -v "$(RDOCOUT)" "$(RIDATADIR)"
+
+rdoc: $(PROGRAM) PHONY
+ @echo Generating RDoc documentation
+ $(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RDOCOUT)" "$(srcdir)"
+
+pre-install-doc:: PHONY
+
+post-install-doc:: PHONY
+
install-prereq:
@exit > $(INSTALLED_LIST)