Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # $Id$
  2. # Copyright (c) 2001-2004, Roger Dingledine
  3. # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
  4. # Copyright (c) 2007-2008, The Tor Project, Inc.
  5. # See LICENSE for licensing information
  6. AUTOMAKE_OPTIONS = foreign
  7. # else it keeps trying to put COPYING back in
  8. SUBDIRS = src doc contrib
  9. DIST_SUBDIRS = src doc contrib
  10. EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog \
  11. ReleaseNotes tor.spec tor.spec.in
  12. #install-data-local:
  13. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  14. # Assume a tarball is in .. for now.
  15. dist-rpm:
  16. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  17. rm -rf $$RPM_BUILD_DIR; \
  18. mkdir $$RPM_BUILD_DIR || exit 1; \
  19. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  20. mkdir $$RPM_BUILD_DIR/$$subdir; \
  21. done; \
  22. mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
  23. cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
  24. pushd $$RPM_BUILD_DIR/SOURCES/; \
  25. tar zcf tor-$(VERSION).tar.gz ./; \
  26. popd; \
  27. rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  28. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  29. mv $$RPM_BUILD_DIR/RPMS/* .; \
  30. rm -rf $$RPM_BUILD_DIR
  31. dist-osx:
  32. @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
  33. echo "Configure with --prefix=/Library/Tor, please"; \
  34. exit 1; \
  35. fi; \
  36. if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
  37. echo "Configure with --bindir=/Library/Tor, please"; \
  38. exit 1; \
  39. fi; \
  40. if [ "x$(sysconfdir)" != 'x/Library' ]; then \
  41. echo "Configure with --sysconfdir=/Library, please"; \
  42. exit 1; \
  43. fi; \
  44. if [ "x$(CONFDIR)" != 'x/Library/Tor' ]; then \
  45. echo "Configure with CONFDIR=/Library/Tor, please"; \
  46. fi
  47. $(MAKE) all
  48. VERSION=$(VERSION) sh ./contrib/osx/package.sh
  49. dist: check
  50. doxygen:
  51. doxygen && cd doc/doxygen/latex && make
  52. test:
  53. ./src/or/test
  54. # Avoid strlcpy.c, strlcat.c, tree.h
  55. check-spaces:
  56. ./contrib/checkSpace.pl -C \
  57. src/common/*.h \
  58. src/common/[^asO]*.c src/common/address.c \
  59. src/or/[^et]*.[ch] src/or/t*.c src/or/eventdns_tor.h
  60. check-docs:
  61. ./contrib/checkOptionDocs.pl
  62. check-logs:
  63. ./contrib/checkLogs.pl \
  64. src/*/*.[ch] | sort -n