2005-04-01 22:15:56 +02:00
|
|
|
# $Id$
|
2006-02-09 06:46:49 +01:00
|
|
|
# Copyright (c) 2001-2004, Roger Dingledine
|
|
|
|
# Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
|
2005-04-01 22:15:56 +02:00
|
|
|
# See LICENSE for licensing information
|
|
|
|
|
2003-10-24 05:27:53 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
# else it keeps trying to put COPYING back in
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2004-02-17 07:41:18 +01:00
|
|
|
SUBDIRS = src doc contrib
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2004-02-17 07:41:18 +01:00
|
|
|
DIST_SUBDIRS = src doc contrib
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2004-11-04 16:17:22 +01:00
|
|
|
EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
|
2002-07-22 06:07:34 +02:00
|
|
|
|
2003-10-22 06:33:11 +02:00
|
|
|
#install-data-local:
|
|
|
|
# $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
|
2004-03-02 20:09:30 +01:00
|
|
|
|
2006-04-10 16:12:29 +02:00
|
|
|
# Assume a tarball is in .. for now.
|
|
|
|
dist-rpm:
|
2004-12-19 00:04:55 +01:00
|
|
|
RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
|
|
|
|
rm -rf $$RPM_BUILD_DIR; \
|
|
|
|
mkdir $$RPM_BUILD_DIR || exit 1; \
|
|
|
|
for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
|
|
|
|
mkdir $$RPM_BUILD_DIR/$$subdir; \
|
|
|
|
done; \
|
2006-04-13 03:46:27 +02:00
|
|
|
tar zcf tor-$(VERSION).tar.gz ../tor; \
|
|
|
|
cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES; \
|
2006-02-16 23:00:46 +01:00
|
|
|
rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
|
2004-12-19 00:04:55 +01:00
|
|
|
mv $$RPM_BUILD_DIR/SRPMS/* .; \
|
2006-02-16 23:00:46 +01:00
|
|
|
mv $$RPM_BUILD_DIR/RPMS/* .; \
|
2004-12-19 00:04:55 +01:00
|
|
|
rm -rf $$RPM_BUILD_DIR
|
2004-05-07 19:03:52 +02:00
|
|
|
|
2005-01-05 03:46:25 +01:00
|
|
|
dist-osx:
|
|
|
|
@if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
|
|
|
|
echo "Configure with --prefix=/Library/Tor, please"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
|
|
|
|
echo "Configure with --bindir=/Library/Tor, please"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
if [ "x$(sysconfdir)" != 'x/Library' ]; then \
|
|
|
|
echo "Configure with --sysconfdir=/Library, please"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
$(MAKE) all
|
|
|
|
VERSION=$(VERSION) sh ./contrib/osx/package.sh
|
|
|
|
|
2004-05-07 19:03:52 +02:00
|
|
|
doxygen:
|
2004-11-04 16:17:22 +01:00
|
|
|
doxygen && cd doc/doxygen/latex && make
|
2004-11-09 21:04:00 +01:00
|
|
|
|
|
|
|
# Avoid strlcpy.c, strlcat.c, tree.h
|
|
|
|
check-spaces:
|
2005-06-11 20:52:37 +02:00
|
|
|
./contrib/checkSpace.pl -C \
|
2004-11-09 21:04:00 +01:00
|
|
|
src/common/*.h \
|
|
|
|
src/common/[^s]*.c \
|
|
|
|
src/or/[^t]*.[ch] src/or/t*.c
|
|
|
|
|