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 8import doxygen ; 9import os ; 10import path ; 11 12.doxygen = [ doxygen.name ] ; 13.doxygen ?= doxygen ; 14 15#doxygen/gil_standalone/gil_boost.doxygen 16make reference : doxyfile 17 : @make_doxygen 18 : <location>html 19 <dependency>$(headers) 20 ; 21 22rule 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 29if [ os.name ] = NT 30{ 31 actions make_doxygen 32 { 33 SET LIB_DIR=$(LIB_DIR) 34 chdir "$(>:D)" && "$(.doxygen)" $(>:D=) 35 } 36} 37else 38{ 39 actions make_doxygen 40 { 41 export LIB_DIR=$(LIB_DIR) 42 cd $(>:D) && "$(.doxygen)" $(>:D=) 43 } 44} 45 46make html 47 : index.rst 48 : @sphinx-build 49 : <location>. 50 <dependency>reference 51 ; 52 53if [ os.name ] = NT 54{ 55 actions sphinx-build { chdir "$(>:D)" && make clean && make html} 56} 57else 58{ 59 actions sphinx-build { make -C "$(>:D)" clean html} 60} 61 62############################################################################### 63alias boostdoc ; 64explicit boostdoc ; 65alias boostrelease : html ; 66explicit boostrelease ; 67