Makefile.am 1.2 KB

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