Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / doc / Jamfile
1 # Boost.GIL (Generic Image Library) - documentation
2 #
3 # Copyright (c) 2018 Stefan Seefeld
4 #
5 # Distributed under the Boost Software License, Version 1.0. (See accompanying
6 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 import doxygen ;
9 import os ;
10 import path ;
11
12 .doxygen = [ doxygen.name ] ;
13 .doxygen ?= doxygen ;
14
15 #doxygen/gil_standalone/gil_boost.doxygen
16 make reference : doxyfile
17      : @make_doxygen
18      : <location>html
19        <dependency>$(headers)
20      ;
21
22 rule make_doxygen ( targets * : sources * : properties * )
23 {
24     LIB_DIR on $(targets) =
25         [ path.native [ path.parent [ path.root
26         [ on $(sources[1]) return $(SEARCH) ] [ path.pwd ] ] ] ] ;
27 }
28
29 if [ os.name ] = NT
30 {
31     actions make_doxygen
32     {
33         SET LIB_DIR=$(LIB_DIR)
34         chdir "$(>:D)" && "$(.doxygen)" $(>:D=)
35     }
36 }
37 else
38 {
39     actions make_doxygen
40     {
41         export LIB_DIR=$(LIB_DIR)
42         cd $(>:D) && "$(.doxygen)" $(>:D=)
43     }
44 }
45
46 make html
47      : index.rst
48      : @sphinx-build
49      : <location>.
50        <dependency>reference
51      ;
52
53 if [ os.name ] = NT
54 {
55   actions sphinx-build { chdir "$(>:D)" && make clean && make html}
56 }
57 else
58 {
59   actions sphinx-build { make -C "$(>:D)" clean html}
60 }
61
62 ###############################################################################
63 alias boostdoc ;
64 explicit boostdoc ;
65 alias boostrelease : html ;
66 explicit boostrelease ;