OSX gets confused when you have two ways to start the same program.
[tor/rransom.git] / Makefile.am
blob6179291fd1fbc0436af4c54105c542fec658c9c9
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 # Assume a tarball is in .. for now.
19 dist-rpm: 
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         mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION);           \
27         cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/;       \
28         pushd $$RPM_BUILD_DIR/SOURCES/;                         \
29         tar zcf tor-$(VERSION).tar.gz ./;                       \
30         popd;                                                   \
31         rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
32         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
33         mv $$RPM_BUILD_DIR/RPMS/* .;                            \
34         rm -rf $$RPM_BUILD_DIR
37 dist-osx:
38         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
39           echo "Configure with --prefix=/Library/Tor, please"; \
40           exit 1; \
41         fi; \
42         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
43           echo "Configure with --bindir=/Library/Tor, please"; \
44           exit 1; \
45         fi; \
46         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
47           echo "Configure with --sysconfdir=/Library, please"; \
48           exit 1; \
49         fi
50         $(MAKE) all
51         VERSION=$(VERSION) sh ./contrib/osx/package.sh
53 doxygen:
54         doxygen && cd doc/doxygen/latex && make
56 # Avoid strlcpy.c, strlcat.c, tree.h
57 check-spaces:
58         ./contrib/checkSpace.pl -C                    \
59                 src/common/*.h                        \
60                 src/common/[^as]*.c                   \
61                 src/or/[^et]*.[ch] src/or/t*.c src/or/eventdns_tor.h