Jamfile.v2 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright Louis Dionne 2013-2017
  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. import os ;
  5. if [ os.environ TRAVIS ] {
  6. path-constant HANA_SOURCE_DIR : .. ;
  7. } else {
  8. path-constant HANA_SOURCE_DIR : $(BOOST_ROOT)/libs/hana ;
  9. }
  10. make hana-doc : : @make-hana-doc ;
  11. actions make-hana-doc {
  12. cd $(HANA_SOURCE_DIR)
  13. master_ref=$(git show-ref --hash=7 heads/master)
  14. git clone https://github.com/boostorg/hana doc/html
  15. cd doc/html
  16. git checkout gh-pages
  17. gh_pages_ref=$(git log --branches=gh-pages -n 1 --grep=${master_ref} --format="format:%H")
  18. git checkout ${gh_pages_ref}
  19. }
  20. # Since Hana does not use BoostBook, it does not integrate into the global
  21. # book containing the documentation of all Boost libraries. Per [1], we need
  22. # to define this empty target to accommodate the build scripts.
  23. #
  24. # [1]: http://www.boost.org/development/requirements.html#Requirements
  25. alias boostdoc ;
  26. explicit boostdoc ;
  27. alias boostrelease : hana-doc ;
  28. explicit boostrelease ;