Detect the correct versions of openssl for tls negotiation fix
[tor.git] / doc / Makefile.am
blob492dd3bd51d4a07ecbfb650d3819552a133bee05
2 # We use a two-step process to generate documentation from asciidoc files.
4 # First, we use asciidoc/a2x to process the asciidoc files into .1.in and
5 # .html.in files (see the asciidoc-helper.sh script). These are the same as
6 # the regular .1 and .html files, except that they still have some autoconf
7 # variables set in them.
9 # Second, we use config.status to turn .1.in files into .1 files and
10 # .html.in files into .html files.
12 # We do the steps in this order so that we can ship the .*.in files as
13 # part of the source distribution, so that people without asciidoc can
14 # just use the .1 and .html files.
16 asciidoc_files = tor tor-gencert tor-resolve torify
18 html_in = $(asciidoc_files:=.html.in)
20 man_in = $(asciidoc_files:=.1.in)
22 EXTRA_DIST = HACKING                                         \
23              $(html_in) $(man_in) $(asciidoc_files:=.1.txt)  \
24              tor-osx-dmg-creation.txt tor-rpm-creation.txt   \
25              tor-win32-mingw-creation.txt
27 nodist_man_MANS = $(asciidoc_files:=.1)
29 docdir = @docdir@
31 doc_DATA = $(asciidoc_files:=.html)
33 asciidoc_product = $(nodist_man_MANS) $(doc_DATA)
35 SUBDIRS = spec
37 DIST_SUBDIRS = spec
39 # Generate the html documentation from asciidoc, but don't do
40 # machine-specific replacements yet
41 $(html_in) :
42         $(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ @SED@ $(top_srcdir)/doc/$@
44 tor.html.in : tor.1.txt
45 torify.html.in : torify.1.txt
46 tor-gencert.html.in : tor-gencert.1.txt
47 tor-resolve.html.in : tor-resolve.1.txt
49 # Generate the manpage from asciidoc, but don't do
50 # machine-specific replacements yet
51 $(man_in) :
52         $(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ @SED@ $(top_srcdir)/doc/$@
54 tor.1.in : tor.1.txt
55 torify.1.in : torify.1.txt
56 tor-gencert.1.in : tor-gencert.1.txt
57 tor-resolve.1.in : tor-resolve.1.txt
59 # use ../config.status to swap all machine-specific magic strings
60 # in the asciidoc with their replacements.
61 $(asciidoc_product) :
62         if test -e $(top_srcdir)/doc/$@.in && ! test -e ./$@.in ; then \
63                 cp $(top_srcdir)/doc/$@.in .; \
64         fi
65         ../config.status --file=$@;
67 tor.1 : tor.1.in
68 torify.1 : torify.1.in
69 tor-gencert.1 : tor-gencert.1.in
70 tor-resolve.1 : tor-resolve.1.in
71 tor.html : tor.html.in
72 torify.html : torify.html.in
73 tor-gencert.html : tor-gencert.html.in
74 tor-resolve.html : tor-resolve.html.in
76 CLEANFILES = $(asciidoc_product)
77 DISTCLEANFILES = $(html_in) $(man_in)