Makefile.am 1.8 KB

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