Additional fixes/test. We will now limit the hostname when adding it into
[awesomized/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 DISTCLEANFILES=
19 EXTRA_DIST= \
20 ${srcdir}/m4/pandora_*.m4 \
21 .quickly \
22 README.FIRST \
23 README.win32 \
24 config/autorun.sh \
25 config/pandora-plugin \
26 config/uncrustify.cfg \
27 m4/ac_cxx_header_stdcxx_98.m4 \
28 m4/acx_pthread.m4 \
29 m4/gettext.m4 \
30 m4/iconv.m4 \
31 m4/pkg.m4 \
32 m4/po.m4 \
33 m4/progtest.m4
34
35 TEST_DOCS=
36 if BUILD_DOCS
37 SUBDIRS = docs
38 TEST_DOCS+=test-docs
39 endif
40
41 test-docs:
42 (cd docs && $(MAKE) test-docs)
43 include libmemcached/include.am
44 include clients/include.am
45 include libtest/include.am
46 include libhashkit/include.am
47 include unittests/include.am
48 include tests/include.am
49 include example/include.am
50 include support/include.am
51 include poll/include.am
52 include win32/include.am
53
54 TESTS += ${check_PROGRAMS}
55
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:
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/SRPMS/libmemcached-$(VERSION)*.rpm .
72
73 rpm: all dist generic fedora
74
75 merge-clean:
76 find ./ | $(GREP) \.gcda | xargs rm -f
77 find ./ | $(GREP) \.gcno | xargs rm -f
78 find ./ | $(GREP) \.gz | xargs rm -f
79 find ./ | $(GREP) \.orig | xargs rm -f
80 find ./ | $(GREP) \.rej | xargs rm -f
81 find ./ | $(GREP) \.rpm | xargs rm -f
82 find ./ | $(GREP) \~$$ | xargs rm -f
83 bzr unknowns
84
85 lcov: lcov-clean check
86 @echo
87 @echo " ------------------------------------------------------"
88 @echo "Make sure ./configure was run with '--enable-coverage'"
89 @echo "------------------------------------------------------"
90 @echo
91 cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out
92 genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
93
94 lcov-clean: clean
95 rm -rf lcov */lcov.out
96 find . -name '*.gcno' | xargs rm -f
97 find . -name '*.gcda' | xargs rm -f
98
99 CLEANFILES+= config/top.h
100
101