Drop redundant exit policy entries, not just identical ones.
[tor.git] / Makefile.am
blob639f651f34c04c042cc1e66ca511d5f350b77650
1 # $Id$
2 # Copyright (c) 2001-2004, Roger Dingledine
3 # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
4 # See LICENSE for licensing information
6 AUTOMAKE_OPTIONS = foreign
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 AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
15 #install-data-local:
16 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
18 dist-rpm: dist
19         RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$";                \
20         rm -rf $$RPM_BUILD_DIR;                                 \
21         mkdir $$RPM_BUILD_DIR || exit 1;                        \
22         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do        \
23             mkdir $$RPM_BUILD_DIR/$$subdir;                     \
24         done;                                                   \
25         cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES;       \
26         rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR"         \
27            $$RPMBUILD_OPTIONS tor.spec;                         \
28         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
29         mv $$RPM_BUILD_DIR/RPMS/*/* .;                          \
30         rm -rf $$RPM_BUILD_DIR
32 dist-osx:
33         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
34           echo "Configure with --prefix=/Library/Tor, please"; \
35           exit 1; \
36         fi; \
37         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
38           echo "Configure with --bindir=/Library/Tor, please"; \
39           exit 1; \
40         fi; \
41         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
42           echo "Configure with --sysconfdir=/Library, please"; \
43           exit 1; \
44         fi
45         $(MAKE) all
46         VERSION=$(VERSION) sh ./contrib/osx/package.sh
48 doxygen:
49         doxygen && cd doc/doxygen/latex && make
51 # Avoid strlcpy.c, strlcat.c, tree.h
52 check-spaces:
53         ./contrib/checkSpace.pl -C             \
54                 src/common/*.h                 \
55                 src/common/[^s]*.c             \
56                 src/or/[^t]*.[ch] src/or/t*.c