Makefile.am 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. AUTOMAKE_OPTIONS = foreign
  2. # else it keeps trying to put COPYING back in
  3. SUBDIRS = src doc contrib
  4. DIST_SUBDIRS = src doc contrib
  5. EXTRA_DIST = INSTALL README AUTHORS LICENSE ChangeLog tor.spec tor.spec.in
  6. #install-data-local:
  7. # $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
  8. dist-rpm: dist
  9. RPM_BUILD_DIR="/tmp/tor-rpm-build-$$$$"; \
  10. rm -rf $$RPM_BUILD_DIR; \
  11. mkdir $$RPM_BUILD_DIR || exit 1; \
  12. for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
  13. mkdir $$RPM_BUILD_DIR/$$subdir; \
  14. done; \
  15. cp tor-$(VERSION).tar.gz $$RPM_BUILD_DIR/SOURCES; \
  16. rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" \
  17. $$RPMBUILD_OPTIONS tor.spec; \
  18. mv $$RPM_BUILD_DIR/SRPMS/* .; \
  19. mv $$RPM_BUILD_DIR/RPMS/*/* .; \
  20. rm -rf $$RPM_BUILD_DIR
  21. dist-osx:
  22. @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \
  23. echo "Configure with --prefix=/Library/Tor, please"; \
  24. exit 1; \
  25. fi; \
  26. if [ "x$(bindir)" != 'x/Library/Tor' ]; then \
  27. echo "Configure with --bindir=/Library/Tor, please"; \
  28. exit 1; \
  29. fi; \
  30. if [ "x$(sysconfdir)" != 'x/Library' ]; then \
  31. echo "Configure with --sysconfdir=/Library, please"; \
  32. exit 1; \
  33. fi
  34. $(MAKE) all
  35. VERSION=$(VERSION) sh ./contrib/osx/package.sh
  36. doxygen:
  37. doxygen && cd doc/doxygen/latex && make
  38. # Avoid strlcpy.c, strlcat.c, tree.h
  39. check-spaces:
  40. ./contrib/checkSpace.pl \
  41. src/common/*.h \
  42. src/common/[^s]*.c \
  43. src/or/[^t]*.[ch] src/or/t*.c