Merge in dist fix from Monty
[m6w6/libmemcached] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 # includes append to these:
4 SUFFIXES =
5 PHONY =
6 TESTS =
7 CLEANFILES =
8 bin_PROGRAMS =
9 noinst_HEADERS =
10 lib_LTLIBRARIES =
11 noinst_LTLIBRARIES =
12 noinst_PROGRAMS =
13 include_HEADERS =
14 nobase_include_HEADERS =
15 check_PROGRAMS =
16 EXTRA_HEADERS =
17 BUILT_SOURCES=
18 EXTRA_DIST= \
19 ${srcdir}/m4/pandora_*.m4 \
20 .quickly \
21 README.FIRST \
22 README.win32 \
23 config/autorun.sh \
24 config/pandora-plugin \
25 config/uncrustify.cfg \
26 m4/ac_cxx_header_stdcxx_98.m4 \
27 m4/acx_pthread.m4 \
28 m4/gettext.m4 \
29 m4/iconv.m4 \
30 m4/pkg.m4 \
31 m4/po.m4 \
32 m4/progtest.m4
33
34 TEST_DOCS=
35 if BUILD_DOCS
36 SUBDIRS = docs
37 TEST_DOCS+=test-docs
38 endif
39
40 test-docs:
41 (cd docs && $(MAKE) test-docs)
42 include libmemcached/include.am
43 include clients/include.am
44 include libhashkit/include.am
45 include unittests/include.am
46 include tests/include.am
47 include example/include.am
48 include support/include.am
49 include poll/include.am
50 include win32/include.am
51
52 TESTS += ${check_PROGRAMS}
53
54
55 fedora:
56 rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
57 rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
58 cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
59 rpmbuild -ba support/libmemcached.spec
60 cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
61 cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
62
63 generic:
64 rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
65 rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
66 cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
67 rpmbuild -ba support/libmemcached.spec
68 cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
69 cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
70
71 rpm: all dist generic fedora
72
73 merge-clean:
74 find ./ | $(GREP) \.gcda | xargs rm -f
75 find ./ | $(GREP) \.gcno | xargs rm -f
76 find ./ | $(GREP) \.gz | xargs rm -f
77 find ./ | $(GREP) \.orig | xargs rm -f
78 find ./ | $(GREP) \.rej | xargs rm -f
79 find ./ | $(GREP) \.rpm | xargs rm -f
80 find ./ | $(GREP) \~$$ | xargs rm -f
81 bzr unknowns
82
83 lcov: lcov-clean check
84 @echo
85 @echo " ------------------------------------------------------"
86 @echo "Make sure ./configure was run with '--enable-coverage'"
87 @echo "------------------------------------------------------"
88 @echo
89 cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out
90 genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
91
92 lcov-clean: clean
93 rm -rf lcov */lcov.out
94 find . -name '*.gcno' | xargs rm -f
95 find . -name '*.gcda' | xargs rm -f
96
97 CLEANFILES+= config/top.h
98
99