simplify install section even more
[tor.git] / Makefile.am
blobbcb3f22252ca66b29268d7290abff5f72d501402
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
10 #install-data-local:
11 #       $(INSTALL) -m 755 -d $(LOCALSTATEDIR)/lib/tor
13 dist-rpm: dist
14         rm -rf /tmp/tor-rpm-build
15         mkdir /tmp/tor-rpm-build
16         for subdir in BUILD RPMS SOURCES SPECS SRPMS; do \
17             mkdir /tmp/tor-rpm-build/$$subdir;           \
18         done
19         cp tor-$(VERSION).tar.gz /tmp/tor-rpm-build/SOURCES
20         rpmbuild -ba --define '_topdir /tmp/tor-rpm-build' tor.spec
21         mv /tmp/tor-rpm-build/SRPMS/* .
22         mv /tmp/tor-rpm-build/RPMS/*/* .
23         rm -rf /tmp/tor-rpm-build
25 doxygen:
26         doxygen && cd doc/doxygen/latex && make
28 # Avoid strlcpy.c, strlcat.c, tree.h
29 check-spaces:
30         ./contrib/checkSpace.pl                \
31                 src/common/*.h                 \
32                 src/common/[^s]*.c             \
33                 src/or/[^t]*.[ch] src/or/t*.c