Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 \
  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. doxygen:
  49. doxygen && cd doc/doxygen/latex && make
  50. test:
  51. ./src/or/test
  52. # Avoid strlcpy.c, strlcat.c, tree.h
  53. check-spaces:
  54. ./contrib/checkSpace.pl -C \
  55. src/common/*.h \
  56. src/common/[^as]*.c \
  57. src/or/[^et]*.[ch] src/or/t*.c src/or/eventdns_tor.h
  58. check-docs:
  59. ./contrib/checkOptionDocs.pl
  60. check-logs:
  61. ./contrib/checkLogs.pl \
  62. src/*/*.[ch] | sort -n