cleanup so connection_ap_handshake_attach_chosen_circuit() always
[tor.git] / Makefile.am
blob068c15c0db4cb2f68612471ba1cf842098a87a4b
1 AUTOMAKE_OPTIONS = foreign
2  # else it keeps trying to put COPYING back in
4 SUBDIRS = src doc contrib
6 DIST_SUBDIRS = src doc contrib
8 EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
10 #install-data-local:
11 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
13 dist-rpm: dist
14         RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$";                \
15         rm -rf $$RPM_BUILD_DIR;                                 \
16         mkdir $$RPM_BUILD_DIR || exit 1;                        \
17         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do        \
18             mkdir $$RPM_BUILD_DIR/$$subdir;                     \
19         done;                                                   \
20         cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES;       \
21         rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR"         \
22            $$RPMBUILD_OPTIONS tor.spec;                         \
23         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
24         mv $$RPM_BUILD_DIR/RPMS/*/* .;                          \
25         rm -rf $$RPM_BUILD_DIR
27 dist-osx:
28         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
29           echo "Configure with --prefix=/Library/Tor, please"; \
30           exit 1; \
31         fi; \
32         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
33           echo "Configure with --bindir=/Library/Tor, please"; \
34           exit 1; \
35         fi; \
36         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
37           echo "Configure with --sysconfdir=/Library, please"; \
38           exit 1; \
39         fi
40         $(MAKE) all
41         VERSION=$(VERSION) sh ./contrib/osx/package.sh
43 doxygen:
44         doxygen && cd doc/doxygen/latex && make
46 # Avoid strlcpy.c, strlcat.c, tree.h
47 check-spaces:
48         ./contrib/checkSpace.pl                \
49                 src/common/*.h                 \
50                 src/common/[^s]*.c             \
51                 src/or/[^t]*.[ch] src/or/t*.c