Fix a couple of things that make GCC complain with verbose warnings on. Also, fix...
[tor.git] / Makefile.am
blob809e26770f9f1f09eed08a57894b9eb8c17d2138
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" tor.spec; \
27         mv $$RPM_BUILD_DIR/SRPMS/* .;                           \
28         mv $$RPM_BUILD_DIR/RPMS/* .;                            \
29         rm -rf $$RPM_BUILD_DIR
31 dist-osx:
32         @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
33           echo "Configure with --prefix=/Library/Tor, please"; \
34           exit 1; \
35         fi; \
36         if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
37           echo "Configure with --bindir=/Library/Tor, please"; \
38           exit 1; \
39         fi; \
40         if [ "x$(sysconfdir)" != 'x/Library' ]; then \
41           echo "Configure with --sysconfdir=/Library, please"; \
42           exit 1; \
43         fi
44         $(MAKE) all
45         VERSION=$(VERSION) sh ./contrib/osx/package.sh
47 doxygen:
48         doxygen && cd doc/doxygen/latex && make
50 # Avoid strlcpy.c, strlcat.c, tree.h
51 check-spaces:
52         ./contrib/checkSpace.pl -C             \
53                 src/common/*.h                 \
54                 src/common/[^s]*.c             \
55                 src/or/[^t]*.[ch] src/or/t*.c