# Copyright (c) 2008 John Maddock
#
# Distributed under 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)

import boostbook ;
import os ;
import common ;
import doxygen ;
import quickbook ;

project : requirements <include>../../libs/geometry/doc ;



boostbook array_docs 
	: ../../libs/array/doc/array.xml 
	:
        <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
        <format>pdf
	;

boostbook any_docs 
	: ../../libs/any/doc/any.xml 
	:
        <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
        <format>pdf
	;

install pdf-install 
  : 
    array_docs
    any_docs
    ../../libs/accumulators/doc//standalone 
    ../../libs/algorithm/string/doc//string_algo 
    ../../libs/bimap/doc//standalone 
    ../../libs/bind/doc//ref-doc 
    ../../libs/chrono/doc//standalone
    ../../libs/concept_check/doc//concepts 
    ../../libs/config/doc//standalone 
    ../../libs/date_time/xmldoc//date_time 
    ../../libs/foreach/doc//standalone 
    ../../libs/function/doc//function-doc 
    ../../libs/functional/factory/doc//standalone
    ../../libs/functional/forward/doc//standalone
    ../../libs/functional/hash/doc//standalone
    ../../libs/fusion/doc//quickbook
    ../../libs/geometry/doc//geometry
    ../../libs/icl/doc//standalone
    ../../libs/interprocess/doc//standalone
    ../../libs/integer/doc//standalone
    ../../libs/intrusive/doc//standalone
    ../../libs/iterator/doc//standalone
    ../../libs/lambda/doc//lambda-doc
    ../../libs/logic/doc//tribool
    ../../libs/math/doc/complex//standalone
    ../../libs/math/doc/octonion//standalone
    ../../libs/math/doc/quaternion//standalone
    ../../libs/math/doc/gcd//standalone
    ../../libs/math/doc/sf_and_dist//pdf-install
    ../../libs/mpi/doc//standalone
    ../../libs/numeric/conversion/doc//standalone
    ../../libs/optional/doc//standalone
    ../../libs/phoenix/doc//phoenix-doc
    ../../libs/program_options/doc//program_option
    ../../libs/property_tree/doc//standalone
    ../../libs/proto/doc//standalone
    # Invalid Jamfile, doesn't use Boostbook anyway??
    #../../libs/ptr_container/doc//standalone
    ../../libs/ratio/doc//standalone
    ../../libs/regex/doc//standalone
    ../../libs/scope_exit/doc//standalone
    ../../libs/signals/doc//doc
    ../../libs/spirit/repository/doc//spirit2_repository
    ../../libs/static_assert/doc//standalone
    ../../libs/thread/doc//standalone
    ../../libs/tr1/doc//standalone
    ../../libs/type_traits/doc//pdf-install
    ../../libs/typeof/doc//standalone
    ../../libs/units/doc//standalone
    ../../libs/unordered/doc//standalone
    ../../libs/variant/doc//variant-doc
    ../../libs/xpressive/doc//standalone

    ../../tools/boostbook/doc//boostbook
    ../../tools/build/v2/doc//jam_docs
    ../../tools/quickbook/doc//standalone
    ../../tools/bcp/doc//standalone
  :
    <location>.
    <install-type>PDF
    <format>pdf
  ;


install python-tutorial-install
  :
    ../../libs/python/doc/tutorial/doc//tutorial
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>python_tutorial.pdf
  ;

install asio-install
  :
    ../../libs/asio/doc//asio 
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>asio.pdf
  ;

install phoenix-install
  :
    ../../libs/spirit/phoenix/doc//quickbook
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>spirit-phoenix-v2.pdf
  ;

install boost-build-install
  :
    ../../tools/build/v2/doc//userman
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>boost_build.pdf
  ;

install signals2-install
  :
    ../../libs/signals2/doc//standalone
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>signals2.pdf
    <dependency>../../libs/signals2/doc//hello_world_def_code_snippet.xml
  ;

install range-install
  :
    ../../libs/range/doc//quickbook
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>range.pdf
  ;

# Just copy the MSM PDF over:
install msm_install : ../../libs/msm/doc/pdf/msm.pdf : <location>. ;

install spirit-install
   :
      ../../libs/spirit/doc//spirit2
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>spirit2.pdf
;




















