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