1#|
2Copyright Rene Rivera 2011-2019
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6|#
7
8import asciidoctor ;
9import modules ;
10import path ;
11
12project predefdoc ;
13
14path-constant PYGMENTS_DIR : . ;
15
16doc-dir = [ MATCH "--doc-dir=(.*)" : [ modules.peek : ARGV ] ] ;
17doc-dir ?= . ;
18
19local headers = [ glob-tree-ex $(BOOST_PREDEF_INCLUDE) : *.h ] ;
20
21html index : predef.adoc :
22    :
23        <flags>--require=$(PYGMENTS_DIR)/pygments_init.rb
24        <flags>--trace
25        <flags>--verbose
26        <dependency>$(PYGMENTS_DIR)/pygments_init.rb
27        <dependency>$(headers)
28    ;
29explicit index ;
30
31install html : index : <location>$(doc-dir) ;
32explicit html ;
33
34alias boostdoc ;
35explicit boostdoc ;
36
37alias boostrelease : html ;
38explicit boostrelease ;
39