Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. doxygen:
  22. doxygen && cd doc/doxygen/latex && make
  23. # Avoid strlcpy.c, strlcat.c, tree.h
  24. check-spaces:
  25. ./contrib/checkSpace.pl \
  26. src/common/*.h \
  27. src/common/[^s]*.c \
  28. src/or/[^t]*.[ch] src/or/t*.c