Makefile.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. 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 \
  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