| 1 |
# $Id: Makefile.am 6438 2006-05-04 00:40:27Z phobos $ |
|---|
| 2 |
# Copyright (c) 2001-2004, Roger Dingledine |
|---|
| 3 |
# Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson |
|---|
| 4 |
# See LICENSE for licensing information |
|---|
| 5 |
|
|---|
| 6 |
AUTOMAKE_OPTIONS = foreign |
|---|
| 7 |
# else it keeps trying to put COPYING back in |
|---|
| 8 |
|
|---|
| 9 |
SUBDIRS = src doc contrib |
|---|
| 10 |
|
|---|
| 11 |
DIST_SUBDIRS = src doc contrib |
|---|
| 12 |
|
|---|
| 13 |
EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in |
|---|
| 14 |
|
|---|
| 15 |
#install-data-local: |
|---|
| 16 |
# $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor |
|---|
| 17 |
|
|---|
| 18 |
dist-rpm: |
|---|
| 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 |
mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \ |
|---|
| 26 |
cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \ |
|---|
| 27 |
pushd $$RPM_BUILD_DIR/SOURCES/; \ |
|---|
| 28 |
tar zcf tor-$(VERSION).tar.gz ./; \ |
|---|
| 29 |
popd; \ |
|---|
| 30 |
rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \ |
|---|
| 31 |
mv $$RPM_BUILD_DIR/SRPMS/* .; \ |
|---|
| 32 |
mv $$RPM_BUILD_DIR/RPMS/* .; \ |
|---|
| 33 |
rm -rf $$RPM_BUILD_DIR |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
dist-osx: |
|---|
| 37 |
@if [ "x$(prefix)" != 'x/Library/Tor' ]; then \ |
|---|
| 38 |
echo "Configure with --prefix=/Library/Tor, please"; \ |
|---|
| 39 |
exit 1; \ |
|---|
| 40 |
fi; \ |
|---|
| 41 |
if [ "x$(bindir)" != 'x/Library/Tor' ]; then \ |
|---|
| 42 |
echo "Configure with --bindir=/Library/Tor, please"; \ |
|---|
| 43 |
exit 1; \ |
|---|
| 44 |
fi; \ |
|---|
| 45 |
if [ "x$(sysconfdir)" != 'x/Library' ]; then \ |
|---|
| 46 |
echo "Configure with --sysconfdir=/Library, please"; \ |
|---|
| 47 |
exit 1; \ |
|---|
| 48 |
fi |
|---|
| 49 |
$(MAKE) all |
|---|
| 50 |
VERSION=$(VERSION) sh ./contrib/osx/package.sh |
|---|
| 51 |
|
|---|
| 52 |
doxygen: |
|---|
| 53 |
doxygen && cd doc/doxygen/latex && make |
|---|
| 54 |
|
|---|
| 55 |
# Avoid strlcpy.c, strlcat.c, tree.h |
|---|
| 56 |
check-spaces: |
|---|
| 57 |
./contrib/checkSpace.pl -C \ |
|---|
| 58 |
src/common/*.h \ |
|---|
| 59 |
src/common/[^s]*.c \ |
|---|
| 60 |
src/or/[^t]*.[ch] src/or/t*.c |
|---|
| 61 |
|
|---|