Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright (c) 2001-2004, Roger Dingledine
  2. # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
  3. # Copyright (c) 2007-2008, The Tor Project, Inc.
  4. # See LICENSE for licensing information
  5. AUTOMAKE_OPTIONS = foreign
  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 AUTHORS 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. 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-osx:
  31. @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
  32. echo "Configure with --prefix=/Library/Tor, please"; \
  33. exit 1; \
  34. fi; \
  35. if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
  36. echo "Configure with --bindir=/Library/Tor, please"; \
  37. exit 1; \
  38. fi; \
  39. if [ "x$(sysconfdir)" != 'x/Library' ]; then \
  40. echo "Configure with --sysconfdir=/Library, please"; \
  41. exit 1; \
  42. fi; \
  43. if [ "x$(CONFDIR)" != 'x/Library/Tor' ]; then \
  44. echo "Configure with CONFDIR=/Library/Tor, please"; \
  45. fi
  46. $(MAKE) all
  47. VERSION=$(VERSION) sh ./contrib/osx/package.sh
  48. dist: check
  49. doxygen:
  50. doxygen && cd doc/doxygen/latex && make
  51. test:
  52. ./src/or/test
  53. # Avoid strlcpy.c, strlcat.c, tree.h
  54. check-spaces:
  55. ./contrib/checkSpace.pl -C \
  56. src/common/*.h \
  57. src/common/[^asO]*.c src/common/address.c \
  58. src/or/[^et]*.[ch] src/or/t*.c src/or/eventdns_tor.h
  59. check-docs:
  60. ./contrib/checkOptionDocs.pl
  61. check-logs:
  62. ./contrib/checkLogs.pl \
  63. src/*/*.[ch] | sort -n