Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Copyright (c) 2001-2004, Roger Dingledine
  2. # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
  3. # Copyright (c) 2007-2011, The Tor Project, Inc.
  4. # See LICENSE for licensing information
  5. # "foreign" means we don't follow GNU package layout standards
  6. # 1.7 means we require automake vesion 1.7
  7. AUTOMAKE_OPTIONS = foreign 1.7
  8. SUBDIRS = src doc contrib
  9. DIST_SUBDIRS = src doc contrib
  10. EXTRA_DIST = \
  11. ChangeLog \
  12. INSTALL \
  13. LICENSE \
  14. Makefile.nmake \
  15. README \
  16. ReleaseNotes \
  17. tor.spec \
  18. tor.spec.in
  19. #install-data-local:
  20. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  21. # Assume a tarball is in .. for now.
  22. dist-rpm:
  23. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  24. rm -rf $$RPM_BUILD_DIR; \
  25. mkdir $$RPM_BUILD_DIR || exit 1; \
  26. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  27. mkdir $$RPM_BUILD_DIR/$$subdir; \
  28. done; \
  29. mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
  30. cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
  31. pushd $$RPM_BUILD_DIR/SOURCES/; \
  32. tar zcf tor-$(VERSION).tar.gz ./; \
  33. popd; \
  34. LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  35. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  36. mv $$RPM_BUILD_DIR/RPMS/* .; \
  37. rm -rf $$RPM_BUILD_DIR
  38. dist: check
  39. doxygen:
  40. doxygen && cd doc/doxygen/latex && make
  41. test: all
  42. ./src/test/test
  43. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  44. # eventdns.[hc], tinytest*.[ch]
  45. check-spaces:
  46. ./contrib/checkSpace.pl -C \
  47. src/common/*.h \
  48. src/common/[^asO]*.c \
  49. src/common/address.c \
  50. src/or/[^e]*.[ch] \
  51. src/or/eventdns_tor.h \
  52. src/test/test*.[ch] \
  53. src/tools/*.[ch] \
  54. src/tools/tor-fw-helper/*.[ch]
  55. check-docs:
  56. ./contrib/checkOptionDocs.pl
  57. check-logs:
  58. ./contrib/checkLogs.pl \
  59. src/*/*.[ch] | sort -n
  60. version:
  61. @echo "Tor @VERSION@"
  62. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  63. echo -n "git: " ;\
  64. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  65. fi