nobody's implementing proposals 134 or 140, so they get
[tor/rransom.git] / Makefile.am
blobb6e559ef0c08ba29b34fc2ec716603f469bda9c4
1 # $Id$
2 # Copyright (c) 2001-2004, Roger Dingledine
3 # Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
4 # Copyright (c) 2007-2008, The Tor Project, Inc.
5 # 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          \
15              ReleaseNotes tor.spec tor.spec.in
17 #install-data-local:
18 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
20 # Assume a tarball is in .. for now.
21 dist-rpm:
22         RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$";                \
23         rm -rf $$RPM_BUILD_DIR;                                 \
24         mkdir $$RPM_BUILD_DIR || exit 1;                        \
25         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do        \
26             mkdir $$RPM_BUILD_DIR/$$subdir;                     \
27         done;                                                   \
28         mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION);           \
29         cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/;       \
30         pushd $$RPM_BUILD_DIR/SOURCES/;                         \
31         tar zcf tor-$(VERSION).tar.gz ./;                       \
32         popd;                                                   \
33         rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
34         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
35         mv $$RPM_BUILD_DIR/RPMS/* .;                            \
36         rm -rf $$RPM_BUILD_DIR
39 dist-osx:
40         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
41           echo "Configure with --prefix=/Library/Tor, please"; \
42           exit 1; \
43         fi; \
44         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
45           echo "Configure with --bindir=/Library/Tor, please"; \
46           exit 1; \
47         fi; \
48         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
49           echo "Configure with --sysconfdir=/Library, please"; \
50           exit 1; \
51         fi; \
52         if [ "x$(CONFDIR)" != 'x/Library/Tor' ]; then \
53           echo "Configure with CONFDIR=/Library/Tor, please"; \
54         fi
55         $(MAKE) all
56         VERSION=$(VERSION) sh ./contrib/osx/package.sh
58 dist: check
60 doxygen:
61         doxygen && cd doc/doxygen/latex && make
63 test:
64         ./src/or/test
66 # Avoid strlcpy.c, strlcat.c, tree.h
67 check-spaces:
68         ./contrib/checkSpace.pl -C                    \
69                 src/common/*.h                        \
70                 src/common/[^asO]*.c src/common/address.c \
71                 src/or/[^et]*.[ch] src/or/t*.c src/or/eventdns_tor.h
73 check-docs:
74         ./contrib/checkOptionDocs.pl
76 check-logs:
77         ./contrib/checkLogs.pl                        \
78                 src/*/*.[ch] | sort -n