Makefile.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.7 means we require automake vesion 1.7
  7. AUTOMAKE_OPTIONS = foreign 1.7 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. include src/include.am
  18. include doc/include.am
  19. include contrib/include.am
  20. EXTRA_DIST+= \
  21. ChangeLog \
  22. INSTALL \
  23. LICENSE \
  24. Makefile.nmake \
  25. README \
  26. ReleaseNotes \
  27. tor.spec \
  28. tor.spec.in
  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. # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
  52. # eventdns.[hc], tinytest*.[ch]
  53. check-spaces:
  54. ./contrib/checkSpace.pl -C \
  55. src/common/*.h \
  56. src/common/[^asO]*.c \
  57. src/common/address.c \
  58. src/or/[^e]*.[ch] \
  59. src/or/eventdns_tor.h \
  60. src/test/test*.[ch] \
  61. src/test/[^t]*.[ch] \
  62. src/tools/*.[ch] \
  63. src/tools/tor-fw-helper/*.[ch]
  64. check-docs:
  65. ./contrib/checkOptionDocs.pl
  66. check-logs:
  67. ./contrib/checkLogs.pl \
  68. src/*/*.[ch] | sort -n
  69. version:
  70. @echo "Tor @VERSION@"
  71. @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
  72. echo -n "git: " ;\
  73. (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
  74. fi