#============================================================================== # Copyright (c) 2001-2011 Joel de Guzman # Copyright (c) 2001-2011 Hartmut Kaiser # # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #============================================================================== project spirit/doc ; import boostbook ; import quickbook ; import modules ; path-constant here : . ; if --enable-index in [ modules.peek : ARGV ] { ECHO "Building the Spirit docs with automatic index generation enabled." ; using auto-index ; project : requirements __use_auto_index__ on $(here)/index.idx pdf:off html:on index.on.type=1 ; } else { ECHO "Building the Spirit docs with automatic index generation disabled. Try building with --enable-index." ; } path-constant images_location : html ; boostbook spirit2 : spirit2.qbk : boost.root=../../../.. chunk.section.depth=4 chunk.first.sections=1 toc.section.depth=3 toc.max.depth=3 generate.section.toc.level=4 html:admon.graphics.path=images/ . pdf:img.src.path=$(images_location)/ pdf:draft.mode="no" pdf:"boost.url.prefix=http://www.boost.org/doc/libs/release/libs/spirit/doc/html" ; ############################################################################### alias boostdoc ; explicit boostdoc ; alias boostrelease : spirit2 ../repository/doc//spirit2_repository x3//spirit_x3 ; explicit boostrelease ;