1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in (CAPITARGET): enable iff doxygen is available.

* configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled.

* common.mk (docs): target to make documents.

* Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger
  by $(INSTALLDOC) from install.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-16 07:20:19 +00:00
parent 193a7db4e2
commit 99b41f3858
5 changed files with 60 additions and 13 deletions

View file

@ -1,3 +1,14 @@
Wed Sep 16 16:20:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (CAPITARGET): enable iff doxygen is available.
* configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled.
* common.mk (docs): target to make documents.
* Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger
by $(INSTALLDOC) from install.
Wed Sep 16 13:39:10 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb (determinant): Bug fix where determinant failed on

View file

@ -34,7 +34,8 @@ ruby_version = @ruby_version@
TESTUI = console
TESTS =
RDOCTARGET = @RDOCTARGET@
INSTALLDOC = @INSTALLDOC@
DOCTARGETS = @RDOCTARGET@ @CAPITARGET@
EXTOUT = @EXTOUT@
arch_hdrdir = $(EXTOUT)/include/$(arch)

View file

@ -124,7 +124,7 @@ BOOTSTRAPRUBY = $(BASERUBY)
COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) -I. -rrbconfig $(srcdir)/tool/compile_prelude.rb
all: encs exts main $(RDOCTARGET)
all: encs exts main docs
main: encs exts
@$(RUNCMD) $(MKMAIN_CMD) $(MAKE)
@ -172,15 +172,14 @@ $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
ruby.imp: $(EXPORTOBJS)
@$(NM) -Pgp $(EXPORTOBJS) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
install: install-$(RDOCTARGET)
install-rdoc: install-all
doc-all: rdoc capi
install: install-$(INSTALLDOC)
docs: $(DOCTARGETS)
install-all: doc-all pre-install-all do-install-all post-install-all
pre-install-all:: install-prereq
install-all: doc pre-install-all do-install-all post-install-all
pre-install-all:: pre-install-local pre-install-ext pre-install-doc
do-install-all: $(PROGRAM)
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
post-install-all::
post-install-all:: post-install-local post-install-ext post-install-doc
@$(NULLCMD)
install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
@ -256,9 +255,14 @@ post-install-capi::
@$(NULLCMD)
what-where: no-install
no-install: no-install-nodoc no-install-doc
no-install: no-install-$(INSTALLDOC)
what-where-all: no-install-all
no-install-all: no-install-nodoc
no-install-all: pre-no-install-all dont-install-all post-no-install-all
pre-no-install-all:: pre-no-install-local pre-no-install-ext pre-no-install-doc
dont-install-all: $(PROGRAM)
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
post-no-install-all:: post-no-install-local post-no-install-ext post-no-install-doc
@$(NULLCMD)
what-where-nodoc: no-install-nodoc
no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
@ -360,7 +364,7 @@ CLEAR_INSTALLED_LIST = clear-installed-list
install-prereq: $(CLEAR_INSTALLED_LIST) PHONY
clear-installed-list: PHONY
@exit > $(INSTALLED_LIST)
@set MAKE="$(MAKE)" > $(INSTALLED_LIST)
clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-extout
clean-local:: PHONY

View file

@ -343,6 +343,12 @@ AC_SUBST(MAKEDIRS)
AC_CHECK_TOOL(DOT, dot)
AC_CHECK_TOOL(DOXYGEN, doxygen)
if test x"$DOXYGEN" = x; then
CAPITARGET=nodoc
else
CAPITARGET=capi
fi
AC_SUBST(CAPITARGET)
# checks for UNIX variants that set C preprocessor variables
AC_USE_SYSTEM_EXTENSIONS
@ -2119,6 +2125,12 @@ else
fi
AC_SUBST(RDOCTARGET)
case "$RDOCTARGET:$CAPITARGET" in
when(nodoc:nodoc) INSTALLDOC=nodoc;;
when(*) INSTALLDOC=all;;
esac
AC_SUBST(INSTALLDOC)
if test "$rb_with_pthread" = "yes"; then
THREAD_MODEL=pthread
fi

View file

@ -150,8 +150,27 @@ TESTUI = console
!ifndef TESTS
TESTS =
!endif
!ifndef RDOCTARGET
RDOCTARGET = rdoc
!ifndef CAPITARGET
! ifdef DOXYGEN
CAPITARGET = capi
! else
CAPITARGET = nodoc
! endif
!endif
!ifndef DOCTARGETS
! if "$(RDOCTARGET)" == "rdoc"
DOCTARGETS = $(DOCTARGETS) rdoc
! endif
! if "$(CAPITARGET)" == "capi"
DOCTARGETS = $(DOCTARGETS) capi
! endif
!ifndef INSTALLDOC
! if "$(DOCTARGETS)" != ""
INSTALLDOC = all
! else
INSTALLDOC = nodoc
DOCTARGETS = nodoc
! endif
!endif
OUTFLAG = -Fe