Makefile.am 1.7 KB

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