Makefile.am 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. dist-rpm: dist
  13. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  14. rm -rf $$RPM_BUILD_DIR; \
  15. mkdir $$RPM_BUILD_DIR || exit 1; \
  16. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  17. mkdir $$RPM_BUILD_DIR/$$subdir; \
  18. done; \
  19. cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES; \
  20. rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" \
  21. $$RPMBUILD_OPTIONS tor.spec; \
  22. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  23. mv $$RPM_BUILD_DIR/RPMS/*/* .; \
  24. rm -rf $$RPM_BUILD_DIR
  25. dist-osx:
  26. @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
  27. echo "Configure with --prefix=/Library/Tor, please"; \
  28. exit 1; \
  29. fi; \
  30. if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
  31. echo "Configure with --bindir=/Library/Tor, please"; \
  32. exit 1; \
  33. fi; \
  34. if [ "x$(sysconfdir)" != 'x/Library' ]; then \
  35. echo "Configure with --sysconfdir=/Library, please"; \
  36. exit 1; \
  37. fi
  38. $(MAKE) all
  39. VERSION=$(VERSION) sh ./contrib/osx/package.sh
  40. doxygen:
  41. doxygen && cd doc/doxygen/latex && make
  42. # Avoid strlcpy.c, strlcat.c, tree.h
  43. check-spaces:
  44. ./contrib/checkSpace.pl -C \
  45. src/common/*.h \
  46. src/common/[^s]*.c \
  47. src/or/[^t]*.[ch] src/or/t*.c