Merge in trunk
[awesomized/libmemcached] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 # includes append to these:
4 SUFFIXES =
5 .PHONY =
6 TESTS =
7 CLEANFILES =
8 DISTCLEANFILES =
9 bin_PROGRAMS =
10 noinst_HEADERS =
11 lib_LTLIBRARIES =
12 man_MANS =
13 noinst_LTLIBRARIES =
14 noinst_PROGRAMS =
15 include_HEADERS =
16 nobase_include_HEADERS =
17 check_PROGRAMS =
18 EXTRA_HEADERS =
19 BUILT_SOURCES=
20 EXTRA_DIST= \
21 ${srcdir}/m4/pandora_*.m4 \
22 .quickly \
23 README.FIRST \
24 README.win32 \
25 config/autorun.sh \
26 config/pandora-plugin \
27 config/uncrustify.cfg
28
29 include libtest/include.am
30
31 include libhashkit-1.0/include.am
32 include libmemcached-1.0/include.am
33 include libmemcachedprotocol-0.0/include.am
34 include libmemcachedutil-1.0/include.am
35
36 include clients/include.am
37 include docs/include.am
38 include example/include.am
39 include libhashkit/include.am
40 include libmemcached/include.am
41 include libmemcachedutil/include.am
42 include libmemcachedprotocol/include.am
43 include libmemcachedinternal/include.am
44 include libmemcachedinternal/util/include.am
45 include poll/include.am
46 include support/include.am
47 include tests/include.am
48 include util/include.am
49 include win32/include.am
50
51 docs: html man
52
53 TESTS += ${check_PROGRAMS}
54
55 EXTRA_DIST+= ${man_MANS}
56
57 fedora:
58 @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
59 @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
60 @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
61 @rpmbuild -ba support/libmemcached.spec
62 @cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
63 @cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
64
65 generic: support/libmemcached.spec
66 @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
67 @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
68 @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
69 @rpmbuild -ba support/libmemcached.spec
70 @cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
71 @cp ~/rpmbuild/RPMS/x86_64/libmemcached-devel-$(VERSION)*.rpm .
72 @cp ~/rpmbuild/RPMS/x86_64/libmemcached-debuginfo-$(VERSION)*.rpm .
73 @cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
74
75 rpm: man distcheck generic
76
77 release: rpm
78 @rpm --addsign libmemcached-$(VERSION)*.rpm .
79 @rpm --checksig libmemcached-$(VERSION)*.rpm .
80 @rpm --addsign libmemcached-devel-$(VERSION)*.rpm .
81 @rpm --checksig libmemcached-devel-$(VERSION)*.rpm .
82 @rpm --addsign libmemcached-debuginfo-$(VERSION)*.rpm .
83 @rpm --checksig libmemcached-debuginfo-$(VERSION)*.rpm .
84
85 merge-clean:
86 @find ./ | $(GREP) \.gcda | xargs rm -f
87 @find ./ | $(GREP) \.gcno | xargs rm -f
88 @find ./ | $(GREP) \.gz | xargs rm -f
89 @find ./ | $(GREP) \.orig | xargs rm -f
90 @find ./ | $(GREP) \.rej | xargs rm -f
91 @find ./ | $(GREP) \.rpm | xargs rm -f
92 @find ./ | $(GREP) \.THIS | xargs rm -f
93 @find ./ | $(GREP) \.OTHER | xargs rm -f
94 @find ./ | $(GREP) \.BASE | xargs rm -f
95 @find ./ | $(GREP) \~$$ | xargs rm -f
96 @echo "Files that need to be either removed or checked in:"
97 @bzr unknowns
98
99 clean-local:
100 -rm -rf docs/_build docs/doctrees
101
102 lcov: lcov-clean check
103 @echo
104 @echo " ------------------------------------------------------"
105 @echo "Make sure ./configure was run with '--enable-coverage'"
106 @echo "------------------------------------------------------"
107 @echo
108 @cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out
109 @genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
110
111 lcov-clean: clean
112 @rm -rf lcov */lcov.out
113 @find . -name '*.gcno' | xargs rm -f
114 @find . -name '*.gcda' | xargs rm -f
115
116 DISTCLEANFILES+= config/top.h