Makefile.am 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. 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 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-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: all
  52. ./src/test/test
  53. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  54. # eventdns.[hc], tinytest.[ch]
  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. src/test/test*.[ch]
  61. check-docs:
  62. ./contrib/checkOptionDocs.pl
  63. check-logs:
  64. ./contrib/checkLogs.pl \
  65. src/*/*.[ch] | sort -n