1 AUTOMAKE_OPTIONS = foreign
2 # else it keeps trying to put COPYING back in
4 SUBDIRS = src doc contrib
6 DIST_SUBDIRS = src doc contrib
8 EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
11 # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
14 RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
15 rm -rf $$RPM_BUILD_DIR; \
16 mkdir $$RPM_BUILD_DIR || exit 1; \
17 for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
18 mkdir $$RPM_BUILD_DIR/$$subdir; \
20 cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES; \
21 rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" \
22 $$RPMBUILD_OPTIONS tor.spec; \
23 mv $$RPM_BUILD_DIR/SRPMS/* .; \
24 mv $$RPM_BUILD_DIR/RPMS/*/* .; \
25 rm -rf $$RPM_BUILD_DIR
28 @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
29 echo "Configure with --prefix=/Library/Tor, please"; \
32 if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
33 echo "Configure with --bindir=/Library/Tor, please"; \
36 if [ "x$(sysconfdir)" != 'x/Library' ]; then \
37 echo "Configure with --sysconfdir=/Library, please"; \
41 VERSION=$(VERSION) sh ./contrib/osx/package.sh
44 doxygen && cd doc/doxygen/latex && make
46 # Avoid strlcpy.c, strlcat.c, tree.h
48 ./contrib/checkSpace.pl \
51 src/or/[^t]*.[ch] src/or/t*.c