Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. AUTOMAKE_OPTIONS = foreign 1.7
  6. # else it keeps trying to put COPYING back in
  7. SUBDIRS = src doc contrib
  8. DIST_SUBDIRS = src doc contrib
  9. EXTRA_DIST = INSTALL README LICENSE ChangeLog \
  10. ReleaseNotes tor.spec tor.spec.in
  11. #install-data-local:
  12. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  13. # Assume a tarball is in .. for now.
  14. dist-rpm:
  15. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  16. rm -rf $$RPM_BUILD_DIR; \
  17. mkdir $$RPM_BUILD_DIR || exit 1; \
  18. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  19. mkdir $$RPM_BUILD_DIR/$$subdir; \
  20. done; \
  21. mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
  22. cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
  23. pushd $$RPM_BUILD_DIR/SOURCES/; \
  24. tar zcf tor-$(VERSION).tar.gz ./; \
  25. popd; \
  26. LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  27. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  28. mv $$RPM_BUILD_DIR/RPMS/* .; \
  29. rm -rf $$RPM_BUILD_DIR
  30. dist: check
  31. doxygen:
  32. doxygen && cd doc/doxygen/latex && make
  33. test: all
  34. ./src/test/test
  35. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  36. # eventdns.[hc], tinytest*.[ch]
  37. check-spaces:
  38. ./contrib/checkSpace.pl -C \
  39. src/common/*.h \
  40. src/common/[^asO]*.c src/common/address.c \
  41. src/or/[^e]*.[ch] src/or/eventdns_tor.h \
  42. src/test/test*.[ch] src/tools/*.[ch]
  43. check-docs:
  44. ./contrib/checkOptionDocs.pl
  45. check-logs:
  46. ./contrib/checkLogs.pl \
  47. src/*/*.[ch] | sort -n