-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.jam
62 lines (53 loc) · 1.51 KB
/
build.jam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#|
Copyright René Ferdinand Rivera Morell
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
|#
require-b2 5.3 ;
import toolset ;
import feature ;
feature.feature doc-stage : draft final web : propagated symmetric ;
feature.feature verbose : off on : propagated incidental ;
feature.feature license : off on : propagated symmetric ;
project /cplusplus/ecosystem-is
: build-dir .build/b2
: default-build <doc-stage>draft <license>off <verbose>on
;
rule install-name-pdf ( properties * )
{
local name = ecosystem-is ;
if <doc-stage>draft in $(properties) { name += draft ; }
if <doc-stage>final in $(properties) { name += final ; }
if <license>on in $(properties) { name += ccby4 ; }
return <name>$(name:J=-).pdf ;
}
install ecosystem-is-latex-pdf
: src//ecosystem.pdf
: <location>.
<conditional>@install-name-pdf
<relevant>doc-stage
<relevant>license
;
rule install-name-html ( properties * )
{
local name = ecosystem-is ;
if <doc-stage>draft in $(properties) { name += draft ; }
if <doc-stage>final in $(properties) { name += final ; }
if <license>on in $(properties) { name += ccby4 ; }
return <name>$(name:J=-).html ;
}
install ecosystem-is-adoc-html
: src//ecosystem.html
: <location>.
<conditional>@install-name-html
<relevant>doc-stage
<relevant>license
;
install ecosystem-pub
: src//ecosystem.html/<doc-stage>web/<license>on
: <location>pub
<name>index.html
<relevant>doc-stage
<relevant>license
;