| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | 
# We use a two-step process to generate documentation from asciidoc files.## First, we use asciidoc/a2x to process the asciidoc files into .1.in and# .html.in files (see the asciidoc-helper.sh script). These are the same as# the regular .1 and .html files, except that they still have some autoconf# variables set in them.## Second, we use config.status to turn .1.in files into .1 files and# .html.in files into .html files.## We do the steps in this order so that we can ship the .*.in files as# part of the source distribution, so that people without asciidoc can# just use the .1 and .html files.if USE_ASCIIDOCif USE_FW_HELPERasciidoc_files = tor tor-gencert tor-resolve torify tor-fw-helperelseasciidoc_files = tor tor-gencert tor-resolve torifyendifhtml_in = $(asciidoc_files:=.html.in)man_in = $(asciidoc_files:=.1.in)txt_in = $(asciidoc_files:=.1.txt)nodist_man_MANS = $(asciidoc_files:=.1)doc_DATA = $(asciidoc_files:=.html)elseasciidoc_files =html_in =man_in =txt_in =nodist_man_MANS =doc_DATA =endifEXTRA_DIST = HACKING asciidoc-helper.sh                      \             $(html_in) $(man_in) $(txt_in)                  \             tor-rpm-creation.txt                            \             tor-win32-mingw-creation.txtdocdir = @docdir@asciidoc_product = $(nodist_man_MANS) $(doc_DATA)SUBDIRS = specDIST_SUBDIRS = 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@ $(top_srcdir)/doc/$@tor.html.in : tor.1.txttorify.html.in : torify.1.txttor-gencert.html.in : tor-gencert.1.txttor-resolve.html.in : tor-resolve.1.txttor-fw-helper.html.in : tor-fw-helper.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@ $(top_srcdir)/doc/$@tor.1.in : tor.1.txttorify.1.in : torify.1.txttor-gencert.1.in : tor-gencert.1.txttor-resolve.1.in : tor-resolve.1.txttor-fw-helper.1.in : tor-fw-helper.1.txt# use ../config.status to swap all machine-specific magic strings# in the asciidoc with their replacements.$(asciidoc_product) :	if test -e $(top_srcdir)/doc/$@.in && ! test -e ./$@.in ; then \		cp $(top_srcdir)/doc/$@.in .; \	fi	../config.status --file=$@;tor.1 : tor.1.intorify.1 : torify.1.intor-gencert.1 : tor-gencert.1.intor-resolve.1 : tor-resolve.1.intor-fw-helper.1 : tor-fw-helper.1.intor.html : tor.html.intorify.html : torify.html.intor-gencert.html : tor-gencert.html.intor-resolve.html : tor-resolve.html.intor-fw-helper.html : tor-fw-helper.html.inCLEANFILES = $(asciidoc_product) config.logDISTCLEANFILES = $(html_in) $(man_in)
 |