Avoid spurious re-launch of first pending requested descriptor
[tor.git] / Makefile.am
blob49c910dcff52fb157c9a47d49fcf3612b90c449c
1 # $Id$
2 # Copyright 2002-2004 Roger Dingledine
3 # Copyright 2004-2005 Roger Dingledine, Nick Mathewson
4 # See LICENSE for licensing information
7 AUTOMAKE_OPTIONS = foreign
8  # else it keeps trying to put COPYING back in
10 SUBDIRS = src doc contrib
12 DIST_SUBDIRS = src doc contrib
14 EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
16 #install-data-local:
17 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
19 dist-rpm: dist
20         RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$";                \
21         rm -rf $$RPM_BUILD_DIR;                                 \
22         mkdir $$RPM_BUILD_DIR || exit 1;                        \
23         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do        \
24             mkdir $$RPM_BUILD_DIR/$$subdir;                     \
25         done;                                                   \
26         cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES;       \
27         rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR"         \
28            $$RPMBUILD_OPTIONS tor.spec;                         \
29         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
30         mv $$RPM_BUILD_DIR/RPMS/*/* .;                          \
31         rm -rf $$RPM_BUILD_DIR
33 dist-osx:
34         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
35           echo "Configure with --prefix=/Library/Tor, please"; \
36           exit 1; \
37         fi; \
38         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
39           echo "Configure with --bindir=/Library/Tor, please"; \
40           exit 1; \
41         fi; \
42         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
43           echo "Configure with --sysconfdir=/Library, please"; \
44           exit 1; \
45         fi
46         $(MAKE) all
47         VERSION=$(VERSION) sh ./contrib/osx/package.sh
49 doxygen:
50         doxygen && cd doc/doxygen/latex && make
52 # Avoid strlcpy.c, strlcat.c, tree.h
53 check-spaces:
54         ./contrib/checkSpace.pl -C             \
55                 src/common/*.h                 \
56                 src/common/[^s]*.c             \
57                 src/or/[^t]*.[ch] src/or/t*.c