ruby-changes:13199
From: nobu <ko1@a...>
Date: Wed, 16 Sep 2009 16:20:35 +0900 (JST)
Subject: [ruby-changes:13199] Ruby:r24956 (trunk): * configure.in (CAPITARGET): enable iff doxygen is available.
nobu 2009-09-16 16:20:19 +0900 (Wed, 16 Sep 2009) New Revision: 24956 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24956 Log: * 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. Modified files: trunk/ChangeLog trunk/Makefile.in trunk/common.mk trunk/configure.in trunk/win32/Makefile.sub Index: configure.in =================================================================== --- configure.in (revision 24955) +++ configure.in (revision 24956) @@ -343,6 +343,12 @@ 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 @@ 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 24955) +++ ChangeLog (revision 24956) @@ -1,3 +1,14 @@ +Wed Sep 16 16:20:17 2009 Nobuyoshi Nakada <nobu@r...> + + * 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@m...> * lib/matrix.rb (determinant): Bug fix where determinant failed on Index: common.mk =================================================================== --- common.mk (revision 24955) +++ common.mk (revision 24956) @@ -124,7 +124,7 @@ 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 @@ 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 @@ @$(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 @@ 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 Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 24955) +++ win32/Makefile.sub (revision 24956) @@ -150,9 +150,28 @@ !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 COUTFLAG = -Fo Index: Makefile.in =================================================================== --- Makefile.in (revision 24955) +++ Makefile.in (revision 24956) @@ -34,7 +34,8 @@ TESTUI = console TESTS = -RDOCTARGET = @RDOCTARGET@ +INSTALLDOC = @INSTALLDOC@ +DOCTARGETS = @RDOCTARGET@ @CAPITARGET@ EXTOUT = @EXTOUT@ arch_hdrdir = $(EXTOUT)/include/$(arch) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/