]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Copyright Louis Dionne 2013-2016 |
2 | # Distributed under the Boost Software License, Version 1.0. | |
3 | # (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | import os ; | |
6 | ||
7 | if [ os.environ TRAVIS ] { | |
8 | path-constant HANA_SOURCE_DIR : .. ; | |
9 | } else { | |
10 | path-constant HANA_SOURCE_DIR : $(BOOST_ROOT)/libs/hana ; | |
11 | } | |
12 | ||
13 | make hana-doc : : @make-hana-doc ; | |
14 | ||
15 | actions make-hana-doc { | |
16 | cd $(HANA_SOURCE_DIR) | |
17 | master_ref=$(git show-ref --hash=7 heads/master) | |
18 | ||
19 | git clone https://github.com/boostorg/hana doc/html | |
20 | cd doc/html | |
21 | git checkout gh-pages | |
22 | gh_pages_ref=$(git log --branches=gh-pages -n 1 --grep=${master_ref} --format="format:%H") | |
23 | git checkout ${gh_pages_ref} | |
24 | } | |
25 | ||
26 | # Since Hana does not use BoostBook, it does not integrate into the global | |
27 | # book containing the documentation of all Boost libraries. Per [1], we need | |
28 | # to define this empty target to accommodate the build scripts. | |
29 | # | |
30 | # [1]: http://www.boost.org/development/requirements.html#Requirements | |
31 | alias boostdoc ; | |
32 | explicit boostdoc ; | |
33 | alias boostrelease ; | |
34 | explicit boostrelease ; |