Makefile.am 2.3 KB

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