Makefile.am 2.4 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. 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. tor.spec \
  29. tor.spec.in
  30. #install-data-local:
  31. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  32. # Allows to override rpmbuild with rpmbuild-md5 from fedora-packager so that
  33. # building for EL5 won't fail on https://bugzilla.redhat.com/show_bug.cgi?id=490613
  34. RPMBUILD ?= rpmbuild
  35. # Use automake's dist-gzip target to build the tarball
  36. dist-rpm: dist-gzip
  37. TIMESTAMP=$$(date +"%Y-%m-%d_%H.%M.%S"); \
  38. RPM_BUILD_DIR=$$(mktemp -d "/tmp/tor-rpm-build-$$TIMESTAMP-XXXX"); \
  39. mkdir -p "$$RPM_BUILD_DIR"/{BUILD,RPMS,SOURCES/"tor-$(VERSION)",SPECS,SRPMS}; \
  40. cp -fa "$(distdir).tar.gz" "$$RPM_BUILD_DIR"/SOURCES/; \
  41. LIBS=-lrt $(RPMBUILD) -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
  42. cp -fa "$$RPM_BUILD_DIR"/SRPMS/* .; \
  43. cp -fa "$$RPM_BUILD_DIR"/RPMS/* .; \
  44. rm -rf "$$RPM_BUILD_DIR"; \
  45. echo "RPM build finished"; \
  46. #end of dist-rpm
  47. dist: check
  48. doxygen:
  49. doxygen && cd doc/doxygen/latex && make
  50. test: all
  51. ./src/test/test
  52. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  53. # eventdns.[hc], tinytest*.[ch]
  54. check-spaces:
  55. ./contrib/checkSpace.pl -C \
  56. src/common/*.h \
  57. src/common/[^asO]*.c \
  58. src/common/address.c \
  59. src/or/[^e]*.[ch] \
  60. src/or/eventdns_tor.h \
  61. src/test/test*.[ch] \
  62. src/test/[^t]*.[ch] \
  63. src/tools/*.[ch] \
  64. src/tools/tor-fw-helper/*.[ch]
  65. check-docs:
  66. ./contrib/checkOptionDocs.pl
  67. check-logs:
  68. ./contrib/checkLogs.pl \
  69. src/*/*.[ch] | sort -n
  70. version:
  71. @echo "Tor @VERSION@"
  72. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  73. echo -n "git: " ;\
  74. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  75. fi