Makefile.am 2.2 KB

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