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.7 means we require automake vesion 1.7
8 AUTOMAKE_OPTIONS = foreign 1.7
10 SUBDIRS = src doc contrib
12 DIST_SUBDIRS = src doc contrib
25 # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
27 # Assume a tarball is in .. for now.
29 RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
30 rm -rf $$RPM_BUILD_DIR; \
31 mkdir $$RPM_BUILD_DIR || exit 1; \
32 for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
33 mkdir $$RPM_BUILD_DIR/$$subdir; \
35 mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
36 cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
37 pushd $$RPM_BUILD_DIR/SOURCES/; \
38 tar zcf tor-$(VERSION).tar.gz ./; \
40 LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
41 mv $$RPM_BUILD_DIR/SRPMS/* .; \
42 mv $$RPM_BUILD_DIR/RPMS/* .; \
43 rm -rf $$RPM_BUILD_DIR
48 doxygen && cd doc/doxygen/latex && make
53 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
54 # eventdns.[hc], tinytest*.[ch]
56 ./contrib/checkSpace.pl -C \
58 src/common/[^asO]*.c \
59 src/common/address.c \
61 src/or/eventdns_tor.h \
65 src/tools/tor-fw-helper/*.[ch]
68 ./contrib/checkOptionDocs.pl
71 ./contrib/checkLogs.pl \
72 src/*/*.[ch] | sort -n
76 @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
78 (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \