Makefile.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/test/[^t]*.[ch] \
  54. src/tools/*.[ch] \
  55. src/tools/tor-fw-helper/*.[ch]
  56. check-docs:
  57. ./contrib/checkOptionDocs.pl
  58. check-logs:
  59. ./contrib/checkLogs.pl \
  60. src/*/*.[ch] | sort -n
  61. version:
  62. @echo "Tor @VERSION@"
  63. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  64. echo -n "git: " ;\
  65. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  66. fi