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
17 # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
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; \
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
34 @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
35 echo "Configure with --prefix=/Library/Tor, please"; \
38 if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
39 echo "Configure with --bindir=/Library/Tor, please"; \
42 if [ "x$(sysconfdir)" != 'x/Library' ]; then \
43 echo "Configure with --sysconfdir=/Library, please"; \
47 VERSION=$(VERSION) sh ./contrib/osx/package.sh
50 doxygen && cd doc/doxygen/latex && make
52 # Avoid strlcpy.c, strlcat.c, tree.h
54 ./contrib/checkSpace.pl \
57 src/or/[^t]*.[ch] src/or/t*.c