diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-28 03:28:10 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-28 03:28:10 +0000 |
commit | 3672fd0a445db6df7964a8690527e637107b9724 (patch) | |
tree | 3070ec004bda3711b2c8c217c4984c41e10fd6ff /win32/Makefile.sub | |
parent | 23182e77ad4f02b55674866c0a17f91bd5a9c3d2 (diff) |
* win32/Makefile.sub, win32/setup.mak (RDOCTARGET, install,
install-nodoc, install-doc): rdoc support for mswin32.
* win32/configure.bat (--enable-install-doc, --disable-install-doc):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index db37b65d0d..5174b96fd7 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -87,6 +87,13 @@ DESTDIR = $(prefix) !if !defined(libdir) libdir = $(exec_prefix)/lib !endif +!ifndef RIDATADIR +RIDATADIR = $(DESTDIR)/share/ri/$(MAJOR).$(MINOR)/system +!endif +!ifndef RDOCTARGET +RDOCTARGET = install-nodoc +!endif + !if !defined(CFLAGS) CFLAGS = -MD $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) !endif @@ -424,14 +431,20 @@ $(RUBYDEF): $(LIBRUBY_A) miniruby$(EXEEXT) {$(srcdir)/win32}.def.lib: $(AR) $(ARFLAGS)$@ -def:$< -install: rbconfig.rb +install: install-nodoc $(RDOCTARGET) + +install-nodoc: rbconfig.rb $(MINIRUBY) $(srcdir)/instruby.rb $(SCRIPT_ARGS) $(MINIRUBY) $(srcdir)/ext/extmk.rb $(SCRIPT_ARGS) install what-where no-install: rbconfig.rb - $(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS) + $(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS) --mantype="$(MANTYPE)" $(MINIRUBY) $(srcdir)/ext/extmk.rb -n $(SCRIPT_ARGS) install +install-doc: + @echo Generating RDoc documentation + $(DESTDIR:/=\)\bin\$(PROGRAM) $(srcdir)/bin/rdoc --all --ri-system --op "$(RIDATADIR)" $(srcdir) + clean: clean-ext clean-local clean-local: |