Makefile.am 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/*.[ch] \
  55. src/or/*.[ch] \
  56. src/test/*.[ch] \
  57. src/tools/*.[ch] \
  58. src/tools/tor-fw-helper/*.[ch]
  59. check-docs:
  60. ./contrib/checkOptionDocs.pl
  61. check-logs:
  62. ./contrib/checkLogs.pl \
  63. src/*/*.[ch] | sort -n
  64. version:
  65. @echo "Tor @VERSION@"
  66. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  67. echo -n "git: " ;\
  68. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  69. fi