Makefile.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. asciidoc_files = tor tor-gencert tor-resolve torify
  2. html_in = $(asciidoc_files:=.html.in)
  3. man_in = $(asciidoc_files:=.1.in)
  4. EXTRA_DIST = HACKING \
  5. $(html_in) $(man_in) $(asciidoc_files:=.1.txt) \
  6. tor-osx-dmg-creation.txt tor-rpm-creation.txt \
  7. tor-win32-mingw-creation.txt
  8. nodist_man_MANS = $(asciidoc_files:=.1)
  9. doc_DATA = $(asciidoc_files:=.html)
  10. asciidoc_product = $(nodist_man_MANS) $(doc_DATA)
  11. SUBDIRS = design-paper spec
  12. DIST_SUBDIRS = design-paper spec
  13. # Generate the html documentation from asciidoc, but don't do
  14. # machine-specific replacements yet
  15. $(html_in) :
  16. $(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ @SED@ $@
  17. tor.html.in : tor.1.txt
  18. torify.html.in : torify.1.txt
  19. tor-gencert.html.in : tor-gencert.1.txt
  20. tor-resolve.html.in : tor-resolve.1.txt
  21. # Generate the manpage from asciidoc, but don't do
  22. # machine-specific replacements yet
  23. $(man_in) :
  24. $(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ @SED@ $@
  25. tor.1.in : tor.1.txt
  26. torify.1.in : torify.1.txt
  27. tor-gencert.1.in : tor-gencert.1.txt
  28. tor-resolve.1.in : tor-resolve.1.txt
  29. # use ../config.status to swap all machine-specific magic strings
  30. # in the asciidoc with their replacements.
  31. $(asciidoc_product) :
  32. ../config.status --file=$@;
  33. tor.1 : tor.1.in
  34. torify.1 : torify.1.in
  35. tor-gencert.1 : tor-gencert.1.in
  36. tor-resolve.1 : tor-resolve.1.in
  37. tor.html : tor.html.in
  38. torify.html : torify.html.in
  39. tor-gencert.html : tor-gencert.html.in
  40. tor-resolve.html : tor-resolve.html.in