mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
23182e77ad
commit
3672fd0a44
4 changed files with 49 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
Tue Dec 28 12:26:45 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Mon Dec 27 20:02:14 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tcltklib/tcltklib.c: fix SEGV bug when deleting Tk interp
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -14,6 +14,10 @@ if "%1" == "--srcdir" goto :srcdir
|
|||
if "%1" == "srcdir" goto :srcdir
|
||||
if "%1" == "--target" goto :target
|
||||
if "%1" == "target" goto :target
|
||||
if "%1" == "--enable-install-doc" goto :enable-rdoc
|
||||
if "%1" == "--disable-install-doc" goto :disable-rdoc
|
||||
if "%1" == "-h" goto :help
|
||||
if "%1" == "--help" goto :help
|
||||
echo>> ~tmp~.mak "%1" \
|
||||
shift
|
||||
goto :loop
|
||||
|
@ -27,6 +31,25 @@ goto :loop
|
|||
shift
|
||||
shift
|
||||
goto :loop
|
||||
:enable-rdoc
|
||||
echo>> ~tmp~.mak "RDOCTARGET=install-doc" \
|
||||
shift
|
||||
goto :loop
|
||||
:disable-rdoc
|
||||
echo>> ~tmp~.mak "RDOCTARGET=install-nodoc" \
|
||||
shift
|
||||
goto :loop
|
||||
:help
|
||||
echo Configuration:
|
||||
echo --help display this help
|
||||
echo --srcdir=DIR find the sources in DIR [configure dir or `..']
|
||||
echo System types:
|
||||
echo --target=TARGET configure for TARGET [i386-mswin32]
|
||||
echo Optional Package:
|
||||
echo --enable-install-doc install rdoc indexes during install
|
||||
del ~tmp~.mak
|
||||
goto :exit
|
||||
:end
|
||||
echo>> ~tmp~.mak WIN32DIR=$(@D)
|
||||
nmake -alf ~tmp~.mak
|
||||
:exit
|
||||
|
|
|
@ -32,6 +32,9 @@ alpha-$(OS): -prologue- -alpha- -epilogue-
|
|||
@type << > $(MAKEFILE)
|
||||
### Makefile for ruby $(OS) ###
|
||||
srcdir = $(srcdir:\=/)
|
||||
!if defined(RDOCTARGET)
|
||||
RDOCTARGET = $(RDOCTARGET)
|
||||
!endif
|
||||
<<
|
||||
@cl -nologo -EP -I$(srcdir) -DRUBY_EXTERN="//" <<"Creating $(MAKEFILE)" >> $(MAKEFILE)
|
||||
#include "version.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue