2006-02-09 06:46:49 +01:00
|
|
|
# Copyright (c) 2001-2004, Roger Dingledine
|
2008-02-07 06:31:47 +01:00
|
|
|
# Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
|
2011-01-03 17:50:39 +01:00
|
|
|
# Copyright (c) 2007-2011, The Tor Project, Inc.
|
2005-04-01 22:15:56 +02:00
|
|
|
# See LICENSE for licensing information
|
|
|
|
|
2010-10-01 06:01:08 +02:00
|
|
|
# "foreign" means we don't follow GNU package layout standards
|
2011-01-03 23:25:30 +01:00
|
|
|
# 1.7 means we require automake vesion 1.7
|
2011-01-03 23:19:05 +01:00
|
|
|
AUTOMAKE_OPTIONS = foreign 1.7
|
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
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
ChangeLog \
|
|
|
|
INSTALL \
|
|
|
|
LICENSE \
|
2011-08-01 18:36:59 +02:00
|
|
|
Makefile.nmake \
|
2010-11-11 20:22:48 +01:00
|
|
|
README \
|
|
|
|
ReleaseNotes \
|
|
|
|
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.
|
2008-06-04 20:41:32 +02:00
|
|
|
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-05-04 02:34:51 +02:00
|
|
|
mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \
|
2009-07-24 23:15:14 +02:00
|
|
|
cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \
|
|
|
|
pushd $$RPM_BUILD_DIR/SOURCES/; \
|
|
|
|
tar zcf tor-$(VERSION).tar.gz ./; \
|
|
|
|
popd; \
|
|
|
|
LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \
|
|
|
|
mv $$RPM_BUILD_DIR/SRPMS/* .; \
|
|
|
|
mv $$RPM_BUILD_DIR/RPMS/* .; \
|
|
|
|
rm -rf $$RPM_BUILD_DIR
|
2004-05-07 19:03:52 +02:00
|
|
|
|
2008-06-04 20:41:32 +02:00
|
|
|
dist: check
|
|
|
|
|
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
|
|
|
|
2009-09-22 19:57:00 +02:00
|
|
|
test: all
|
2009-09-22 18:31:15 +02:00
|
|
|
./src/test/test
|
2006-10-08 05:17:24 +02:00
|
|
|
|
2009-10-17 15:12:40 +02:00
|
|
|
# Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
|
2010-07-26 05:51:15 +02:00
|
|
|
# eventdns.[hc], tinytest*.[ch]
|
2004-11-09 21:04:00 +01:00
|
|
|
check-spaces:
|
2006-06-03 23:41:14 +02:00
|
|
|
./contrib/checkSpace.pl -C \
|
|
|
|
src/common/*.h \
|
2010-11-11 20:22:48 +01:00
|
|
|
src/common/[^asO]*.c \
|
|
|
|
src/common/address.c \
|
|
|
|
src/or/[^e]*.[ch] \
|
|
|
|
src/or/eventdns_tor.h \
|
|
|
|
src/test/test*.[ch] \
|
|
|
|
src/tools/*.[ch] \
|
2010-04-17 02:45:12 +02:00
|
|
|
src/tools/tor-fw-helper/*.[ch]
|
2004-11-09 21:04:00 +01:00
|
|
|
|
2006-12-20 18:05:48 +01:00
|
|
|
check-docs:
|
|
|
|
./contrib/checkOptionDocs.pl
|
|
|
|
|
2006-09-30 00:33:28 +02:00
|
|
|
check-logs:
|
|
|
|
./contrib/checkLogs.pl \
|
|
|
|
src/*/*.[ch] | sort -n
|
2006-10-08 05:17:24 +02:00
|
|
|
|
2011-11-25 05:53:18 +01:00
|
|
|
version:
|
|
|
|
@echo "Tor @VERSION@"
|
|
|
|
@if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
|
|
|
|
echo -n "git: " ;\
|
|
|
|
(cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
|
|
|
|
fi
|
|
|
|
|