1 # Copyright (c) 2001-2004, Roger Dingledine
2 # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
3 # Copyright (c) 2007-2010, The Tor Project, Inc.
4 # See LICENSE for licensing information
6 # "foreign" means we don't follow GNU package layout standards
7 # 1.6 means we require automake vesion 1.6
8 AUTOMAKE_OPTIONS = foreign 1.6
10 SUBDIRS = src doc contrib
12 DIST_SUBDIRS = src doc contrib
24 # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
26 # Assume a tarball is in .. for now.
28 RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
29 rm -rf $$RPM_BUILD_DIR; \
30 mkdir $$RPM_BUILD_DIR || exit 1; \
31 for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
32 mkdir $$RPM_BUILD_DIR/$$subdir; \
34 mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
35 cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
36 pushd $$RPM_BUILD_DIR/SOURCES/; \
37 tar zcf tor-$(VERSION).tar.gz ./; \
39 LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
40 mv $$RPM_BUILD_DIR/SRPMS/* .; \
41 mv $$RPM_BUILD_DIR/RPMS/* .; \
42 rm -rf $$RPM_BUILD_DIR
47 doxygen && cd doc/doxygen/latex && make
52 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
53 # eventdns.[hc], tinytest*.[ch]
55 ./contrib/checkSpace.pl -C \
57 src/common/[^asO]*.c \
58 src/common/address.c \
60 src/or/eventdns_tor.h \
63 src/tools/tor-fw-helper/*.[ch]
66 ./contrib/checkOptionDocs.pl
69 ./contrib/checkLogs.pl \
70 src/*/*.[ch] | sort -n