Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Copyright (c) 2001-2004, Roger Dingledine
  2. # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
  3. # Copyright (c) 2007-2011, The Tor Project, Inc.
  4. # See LICENSE for licensing information
  5. # "foreign" means we don't follow GNU package layout standards
  6. # 1.9 means we require automake vesion 1.9
  7. AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
  8. ACLOCAL_AMFLAGS = -I m4
  9. noinst_LIBRARIES=
  10. EXTRA_DIST=
  11. noinst_HEADERS=
  12. bin_PROGRAMS=
  13. CLEANFILES=
  14. TESTS=
  15. noinst_PROGRAMS=
  16. DISTCLEANFILES=
  17. bin_SCRIPTS=
  18. AM_CPPFLAGS=
  19. include src/include.am
  20. include doc/include.am
  21. include contrib/include.am
  22. EXTRA_DIST+= \
  23. ChangeLog \
  24. INSTALL \
  25. LICENSE \
  26. Makefile.nmake \
  27. README \
  28. ReleaseNotes
  29. #install-data-local:
  30. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  31. # Allows to override rpmbuild with rpmbuild-md5 from fedora-packager so that
  32. # building for EL5 won't fail on https://bugzilla.redhat.com/show_bug.cgi?id=490613
  33. RPMBUILD ?= rpmbuild
  34. # Use automake's dist-gzip target to build the tarball
  35. dist-rpm: dist-gzip
  36. TIMESTAMP=$$(date +"%Y-%m-%d_%H.%M.%S"); \
  37. RPM_BUILD_DIR=$$(mktemp -d "/tmp/tor-rpm-build-$$TIMESTAMP-XXXX"); \
  38. mkdir -p "$$RPM_BUILD_DIR"/{BUILD,RPMS,SOURCES/"tor-$(VERSION)",SPECS,SRPMS}; \
  39. cp -fa "$(distdir).tar.gz" "$$RPM_BUILD_DIR"/SOURCES/; \
  40. LIBS=-lrt $(RPMBUILD) -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  41. cp -fa "$$RPM_BUILD_DIR"/SRPMS/* .; \
  42. cp -fa "$$RPM_BUILD_DIR"/RPMS/* .; \
  43. rm -rf "$$RPM_BUILD_DIR"; \
  44. echo "RPM build finished"; \
  45. #end of dist-rpm
  46. dist: check
  47. doxygen:
  48. doxygen && cd doc/doxygen/latex && make
  49. test: all
  50. ./src/test/test
  51. # Requires a copy of Chutney in ./chutney
  52. test-network: all
  53. ./src/test/test-network.sh
  54. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  55. # eventdns.[hc], tinytest*.[ch]
  56. check-spaces:
  57. ./contrib/checkSpace.pl -C \
  58. src/common/*.[ch] \
  59. src/or/*.[ch] \
  60. src/test/*.[ch] \
  61. src/tools/*.[ch] \
  62. src/tools/tor-fw-helper/*.[ch]
  63. check-docs:
  64. ./contrib/checkOptionDocs.pl
  65. check-logs:
  66. ./contrib/checkLogs.pl \
  67. src/*/*.[ch] | sort -n
  68. version:
  69. @echo "Tor @VERSION@"
  70. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  71. echo -n "git: " ;\
  72. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  73. fi