Makefile.am 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $Id$
  2. # Copyright 2002-2004 Roger Dingledine
  3. # Copyright 2004-2005 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 \
  45. src/common/*.h \
  46. src/common/[^s]*.c \
  47. src/or/[^t]*.[ch] src/or/t*.c