Don't call tor_tls_set_logged_address till after checking conn->tls
[tor.git] / Makefile.am
blob5f15926183e29ac0b6434a6cb6fb373fe278c72a
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 AUTOMAKE_OPTIONS = foreign 1.7
7  # else it keeps trying to put COPYING back in
9 SUBDIRS = src doc contrib
11 DIST_SUBDIRS = src doc contrib
13 EXTRA_DIST = INSTALL README LICENSE ChangeLog          \
14              ReleaseNotes tor.spec tor.spec.in
16 #install-data-local:
17 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
19 # Assume a tarball is in .. for now.
20 dist-rpm:
21         RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$";                \
22         rm -rf $$RPM_BUILD_DIR;                                 \
23         mkdir $$RPM_BUILD_DIR || exit 1;                        \
24         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do        \
25             mkdir $$RPM_BUILD_DIR/$$subdir;                     \
26         done;                                                   \
27         mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION);           \
28         cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/;       \
29         pushd $$RPM_BUILD_DIR/SOURCES/;                         \
30         tar zcf tor-$(VERSION).tar.gz ./;                       \
31         popd;                                                   \
32         LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
33         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
34         mv $$RPM_BUILD_DIR/RPMS/* .;                            \
35         rm -rf $$RPM_BUILD_DIR
37 dist: check
39 doxygen:
40         doxygen && cd doc/doxygen/latex && make
42 test: all
43         ./src/test/test
45 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
46 # eventdns.[hc], tinytest*.[ch]
47 check-spaces:
48         ./contrib/checkSpace.pl -C                    \
49                 src/common/*.h                        \
50                 src/common/[^asO]*.c src/common/address.c \
51                 src/or/[^e]*.[ch] src/or/eventdns_tor.h \
52                 src/test/test*.[ch] src/tools/*.[ch]
54 check-docs:
55         ./contrib/checkOptionDocs.pl
57 check-logs:
58         ./contrib/checkLogs.pl                        \
59                 src/*/*.[ch] | sort -n