diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-06-16 20:18:30 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2019-06-16 20:21:30 +0300 |
commit | 66a15013fa5abf3c4d3345ca29c22ad13d45e22f (patch) | |
tree | 89b0aaf31ad6b6ded4e58ae195a985e5531c8684 /doc/include.am | |
parent | 319ce225815897d8626e85037ee203c4de634405 (diff) | |
download | tor-66a15013fa5abf3c4d3345ca29c22ad13d45e22f.tar.gz tor-66a15013fa5abf3c4d3345ca29c22ad13d45e22f.zip |
Allow excluding documentation from the build
Diffstat (limited to 'doc/include.am')
-rw-r--r-- | doc/include.am | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/doc/include.am b/doc/include.am index 0a123aae11..a9d3fa1c98 100644 --- a/doc/include.am +++ b/doc/include.am @@ -15,17 +15,32 @@ all_mans = doc/tor doc/tor-gencert doc/tor-resolve doc/torify doc/tor-print-ed-signing-cert if USE_ASCIIDOC -nodist_man1_MANS = $(all_mans:=.1) -doc_DATA = $(all_mans:=.html) +txt_in = $(all_mans:=.1.txt) + +if BUILD_HTML_DOCS html_in = $(all_mans:=.html.in) +doc_DATA = $(all_mans:=.html) +else +html_in = +doc_DATA = +endif + +if BUILD_MANPAGE +nodist_man1_MANS = $(all_mans:=.1) man_in = $(all_mans:=.1.in) -txt_in = $(all_mans:=.1.txt) else +nodist_man1_MANS = +man_in = +endif + +else + html_in = +doc_DATA = man_in = txt_in = nodist_man1_MANS = -doc_DATA = + endif EXTRA_DIST+= doc/asciidoc-helper.sh \ |