aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 2a6bba965d4bf1823d22baf4c558a7c7a7180fe2 (plain)
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
asciidoc_files = tor-gencert tor-resolve torify

html_in = $(asciidoc_files:=.html.in)

man_in = $(asciidoc_files:=.1.in)

EXTRA_DIST = HACKING                                         \
             $(html_in) $(man_in) $(asciidoc_files:=.1.txt)  \
             tor-osx-dmg-creation.txt tor-rpm-creation.txt   \
             tor-win32-mingw-creation.txt

nodist_man_MANS = tor.1 $(asciidoc_files:=.1)

doc_DATA = $(asciidoc_files:=.html)

asciidoc_product = $(nodist_man_MANS) $(doc_DATA)

SUBDIRS = design-paper spec

DIST_SUBDIRS = design-paper spec

# Generate the html documentation from asciidoc, but don't do
# machine-specific replacements yet
$(html_in) :
	$(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ @SED@ $@

torify.html.in : torify.1.txt
tor-gencert.html.in : tor-gencert.1.txt
tor-resolve.html.in : tor-resolve.1.txt

# Generate the manpage from asciidoc, but don't do
# machine-specific replacements yet
$(man_in) :
	$(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ @SED@ $@

torify.1.in : torify.1.txt
tor-gencert.1.in : tor-gencert.1.txt
tor-resolve.1.in : tor-resolve.1.txt

# use ../config.status to swap all machine-specific magic strings
# in the asciidoc with their replacements.
$(asciidoc_product) :
	../config.status --file=$@;

torify.1 : torify.1.in
tor-gencert.1 : tor-gencert.1.in
tor-resolve.1 : tor-resolve.1.in
torify.html : torify.html.in
tor-gencert.html : tor-gencert.html.in
tor-resolve.html : tor-resolve.html.in