Makefile.am 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright (c) 2001-2004, Roger Dingledine
  2. # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
  3. # Copyright (c) 2007-2010, The Tor Project, Inc.
  4. # See LICENSE for licensing information
  5. # "foreign" means we don't follow GNU package layout standards
  6. # 1.6 means we require automake vesion 1.6
  7. AUTOMAKE_OPTIONS = foreign 1.6
  8. SUBDIRS = src doc contrib
  9. DIST_SUBDIRS = src doc contrib
  10. EXTRA_DIST = INSTALL README LICENSE ChangeLog \
  11. ReleaseNotes tor.spec tor.spec.in
  12. #install-data-local:
  13. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  14. # Assume a tarball is in .. for now.
  15. dist-rpm:
  16. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  17. rm -rf $$RPM_BUILD_DIR; \
  18. mkdir $$RPM_BUILD_DIR || exit 1; \
  19. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  20. mkdir $$RPM_BUILD_DIR/$$subdir; \
  21. done; \
  22. mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
  23. cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
  24. pushd $$RPM_BUILD_DIR/SOURCES/; \
  25. tar zcf tor-$(VERSION).tar.gz ./; \
  26. popd; \
  27. LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  28. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  29. mv $$RPM_BUILD_DIR/RPMS/* .; \
  30. rm -rf $$RPM_BUILD_DIR
  31. dist: check
  32. doxygen:
  33. doxygen && cd doc/doxygen/latex && make
  34. test: all
  35. ./src/test/test
  36. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  37. # eventdns.[hc], tinytest*.[ch]
  38. check-spaces:
  39. ./contrib/checkSpace.pl -C \
  40. src/common/*.h \
  41. src/common/[^asO]*.c src/common/address.c \
  42. src/or/[^e]*.[ch] src/or/eventdns_tor.h \
  43. src/test/test*.[ch] src/tools/*.[ch] \
  44. src/tools/tor-fw-helper/*.[ch]
  45. check-docs:
  46. ./contrib/checkOptionDocs.pl
  47. check-logs:
  48. ./contrib/checkLogs.pl \
  49. src/*/*.[ch] | sort -n