bump to 0.2.3.4-alpha
[tor.git] / Makefile.am
blobcd0d8833c6e6a161b61c02de309393a097e3ebe9
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
14 EXTRA_DIST = \
15         ChangeLog                                       \
16         INSTALL                                         \
17         LICENSE                                         \
18         Makefile.nmake                                  \
19         README                                          \
20         ReleaseNotes                                    \
21         tor.spec                                        \
22         tor.spec.in
24 #install-data-local:
25 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
27 # Assume a tarball is in .. for now.
28 dist-rpm:
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;                     \
34         done;                                                   \
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 ./;                       \
39         popd;                                                   \
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
45 dist: check
47 doxygen:
48         doxygen && cd doc/doxygen/latex && make
50 test: all
51         ./src/test/test
53 # Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
54 # eventdns.[hc], tinytest*.[ch]
55 check-spaces:
56         ./contrib/checkSpace.pl -C                    \
57                 src/common/*.h                        \
58                 src/common/[^asO]*.c                  \
59                 src/common/address.c                  \
60                 src/or/[^e]*.[ch]                     \
61                 src/or/eventdns_tor.h                 \
62                 src/test/test*.[ch]                   \
63                 src/tools/*.[ch]                      \
64                 src/tools/tor-fw-helper/*.[ch]
66 check-docs:
67         ./contrib/checkOptionDocs.pl
69 check-logs:
70         ./contrib/checkLogs.pl                        \
71                 src/*/*.[ch] | sort -n