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
6 # "foreign" means we don't follow GNU package layout standards
7 # 1.9 means we require automake vesion 1.9
8 AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
10 ACLOCAL_AMFLAGS = -I m4
22 include src/include.am
23 include doc/include.am
24 include contrib/include.am
36 # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
38 # Allows to override rpmbuild with rpmbuild-md5 from fedora-packager so that
39 # building for EL5 won't fail on https://bugzilla.redhat.com/show_bug.cgi?id=490613
42 # Use automake's dist-gzip target to build the tarball
44 TIMESTAMP=$$(date +"%Y-%m-%d_%H.%M.%S"); \
45 RPM_BUILD_DIR=$$(mktemp -d "/tmp/tor-rpm-build-$$TIMESTAMP-XXXX"); \
46 mkdir -p "$$RPM_BUILD_DIR"/{BUILD,RPMS,SOURCES/"tor-$(VERSION)",SPECS,SRPMS}; \
47 cp -fa "$(distdir).tar.gz" "$$RPM_BUILD_DIR"/SOURCES/; \
48 LIBS=-lrt $(RPMBUILD) -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
49 cp -fa "$$RPM_BUILD_DIR"/SRPMS/* .; \
50 cp -fa "$$RPM_BUILD_DIR"/RPMS/* .; \
51 rm -rf "$$RPM_BUILD_DIR"; \
52 echo "RPM build finished"; \
58 doxygen && cd doc/doxygen/latex && make
63 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
64 # eventdns.[hc], tinytest*.[ch]
66 ./contrib/checkSpace.pl -C \
71 src/tools/tor-fw-helper/*.[ch]
74 ./contrib/checkOptionDocs.pl
77 ./contrib/checkLogs.pl \
78 src/*/*.[ch] | sort -n
82 @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
84 (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \