Add a SIGNAL event for control connections
[tor.git] / Makefile.am
blobe2c93d81016e0f85442023ba4eeec209fb3674c7
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
14 EXTRA_DIST = \
15         ChangeLog                                       \
16         INSTALL                                         \
17         LICENSE                                         \
18         README                                          \
19         ReleaseNotes                                    \
20         tor.spec                                        \
21         tor.spec.in
23 #install-data-local:
24 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
26 # Assume a tarball is in .. for now.
27 dist-rpm:
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;                     \
33         done;                                                   \
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 ./;                       \
38         popd;                                                   \
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
44 dist: check
46 doxygen:
47         doxygen && cd doc/doxygen/latex && make
49 test: all
50         ./src/test/test
52 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
53 # eventdns.[hc], tinytest*.[ch]
54 check-spaces:
55         ./contrib/checkSpace.pl -C                    \
56                 src/common/*.h                        \
57                 src/common/[^asO]*.c                  \
58                 src/common/address.c                  \
59                 src/or/[^e]*.[ch]                     \
60                 src/or/eventdns_tor.h                 \
61                 src/test/test*.[ch]                   \
62                 src/tools/*.[ch]                      \
63                 src/tools/tor-fw-helper/*.[ch]
65 check-docs:
66         ./contrib/checkOptionDocs.pl
68 check-logs:
69         ./contrib/checkLogs.pl                        \
70                 src/*/*.[ch] | sort -n