Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. noinst_LIBRARIES=
  9. EXTRA_DIST=
  10. noinst_HEADERS=
  11. bin_PROGRAMS=
  12. CLEANFILES=
  13. TESTS=
  14. noinst_PROGRAMS=
  15. DISTCLEANFILES=
  16. bin_SCRIPTS=
  17. AM_CPPFLAGS=
  18. include src/include.am
  19. include doc/include.am
  20. include contrib/include.am
  21. EXTRA_DIST+= \
  22. ChangeLog \
  23. INSTALL \
  24. LICENSE \
  25. Makefile.nmake \
  26. README \
  27. ReleaseNotes
  28. #install-data-local:
  29. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  30. # Allows to override rpmbuild with rpmbuild-md5 from fedora-packager so that
  31. # building for EL5 won't fail on https://bugzilla.redhat.com/show_bug.cgi?id=490613
  32. RPMBUILD ?= rpmbuild
  33. # Use automake's dist-gzip target to build the tarball
  34. dist-rpm: dist-gzip
  35. TIMESTAMP=$$(date +"%Y-%m-%d_%H.%M.%S"); \
  36. RPM_BUILD_DIR=$$(mktemp -d "/tmp/tor-rpm-build-$$TIMESTAMP-XXXX"); \
  37. mkdir -p "$$RPM_BUILD_DIR"/{BUILD,RPMS,SOURCES/"tor-$(VERSION)",SPECS,SRPMS}; \
  38. cp -fa "$(distdir).tar.gz" "$$RPM_BUILD_DIR"/SOURCES/; \
  39. LIBS=-lrt $(RPMBUILD) -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  40. cp -fa "$$RPM_BUILD_DIR"/SRPMS/* .; \
  41. cp -fa "$$RPM_BUILD_DIR"/RPMS/* .; \
  42. rm -rf "$$RPM_BUILD_DIR"; \
  43. echo "RPM build finished"; \
  44. #end of dist-rpm
  45. dist: check
  46. doxygen:
  47. doxygen && cd doc/doxygen/latex && make
  48. test: all
  49. ./src/test/test
  50. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  51. # eventdns.[hc], tinytest*.[ch]
  52. check-spaces:
  53. ./contrib/checkSpace.pl -C \
  54. src/common/*.h \
  55. src/common/[^asO]*.c \
  56. src/common/address.c \
  57. src/or/[^e]*.[ch] \
  58. src/or/eventdns_tor.h \
  59. src/test/test*.[ch] \
  60. src/test/[^t]*.[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