Jamfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. import doxygen ;
  8. import os ;
  9. import path ;
  10. .doxygen = [ doxygen.name ] ;
  11. .doxygen ?= doxygen ;
  12. #doxygen/gil_standalone/gil_boost.doxygen
  13. make reference : doxyfile
  14. : @make_doxygen
  15. : <location>html
  16. <dependency>$(headers)
  17. ;
  18. rule make_doxygen ( targets * : sources * : properties * )
  19. {
  20. LIB_DIR on $(targets) =
  21. [ path.native [ path.parent [ path.root
  22. [ on $(sources[1]) return $(SEARCH) ] [ path.pwd ] ] ] ] ;
  23. }
  24. if [ os.name ] = NT
  25. {
  26. actions make_doxygen
  27. {
  28. SET LIB_DIR=$(LIB_DIR)
  29. chdir "$(>:D)" && "$(.doxygen)" $(>:D=)
  30. }
  31. }
  32. else
  33. {
  34. actions make_doxygen
  35. {
  36. export LIB_DIR=$(LIB_DIR)
  37. cd $(>:D) && "$(.doxygen)" $(>:D=)
  38. }
  39. }
  40. make html
  41. : index.rst
  42. : @sphinx-build
  43. : <location>.
  44. <dependency>reference
  45. ;
  46. if [ os.name ] = NT
  47. {
  48. actions sphinx-build { chdir "$(>:D)" && make clean && make html}
  49. }
  50. else
  51. {
  52. actions sphinx-build { make -C "$(>:D)" clean html}
  53. }
  54. ###############################################################################
  55. alias boostdoc ;
  56. explicit boostdoc ;
  57. alias boostrelease : html ;
  58. explicit boostrelease ;