~brianaker/libmemcached/gear-clean

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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# vim:ft=automake

ACLOCAL_AMFLAGS= -I m4 -I libtest/m4
AM_YFLAGS= -d

# includes append to these:
SUFFIXES =
.PHONY =
TESTS =
XFAIL_TESTS =
CLEANFILES =
DISTCLEANFILES =
bin_PROGRAMS =
noinst_HEADERS =
lib_LTLIBRARIES =
man_MANS =
noinst_LTLIBRARIES =
noinst_PROGRAMS =
include_HEADERS =
nobase_include_HEADERS =
check_PROGRAMS =
check_LTLIBRARIES=
EXTRA_HEADERS =
BUILT_SOURCES=
EXTRA_DIST=
dist_man_MANS=
MAINTAINERCLEANFILES=

#includes additional rules from aminclude.am
@INC_AMINCLUDE@

DISTCLEANFILES+= aminclude.am

EXTRA_DIST+= README.FIRST
EXTRA_DIST+= README.win32

aclocaldir= $(datadir)/aclocal
dist_aclocal_DATA=

# Build targets for Windows
if BUILD_WIN32
include libhashkit-1.0/include.am
include libhashkit/include.am
include libmemcached/include.am
include libmemcached-1.0/include.am
else

include libtest/include.am

include libhashkit-1.0/include.am
include libmemcached-1.0/include.am

if BUILD_LIBMEMCACHED_PROTOCOL
include libmemcachedprotocol-0.0/include.am
endif

include libmemcachedutil-1.0/include.am

include clients/include.am
include docs/include.am
include man/include.am

if BUILD_LIBMEMCACHED_PROTOCOL
include example/include.am
endif

include libhashkit/include.am
include libmemcached/include.am
include libmemcachedutil/include.am

if BUILD_LIBMEMCACHED_PROTOCOL
include libmemcachedprotocol/include.am
endif

include libmemcachedinternal/include.am
include libmemcachedinternal/util/include.am
include rpm/include.mk
include support/include.am
include tests/include.am
include util/include.am
include win32/include.am

include m4/include.am
endif

TESTS += ${bin_PROGRAMS}
TESTS += ${check_PROGRAMS}
XFAIL_TESTS += ${bin_PROGRAMS}

if ! BUILD_WIN32

merge-clean:
	@find ./ | $(GREP) \.gcda | xargs rm -f
	@find ./ | $(GREP) \.gcno | xargs rm -f
	@find ./ | $(GREP) \.gz | xargs rm -f
	@find ./ | $(GREP) \.moved | xargs rm -r -f
	@find ./ | $(GREP) \\.orig | xargs rm -f
	@find ./ | $(GREP) \.rej | xargs rm -f
	@find ./ | $(GREP) \.THIS | xargs rm -f
	@find ./ | $(GREP) \.OTHER | xargs rm -f
	@find ./ | $(GREP) \.BASE | xargs rm -f
	@find ./ | $(GREP) \~$$ | xargs rm -f
	@echo "Files that need to be either removed or checked in:"
	@bzr unknowns

clean-local: clean-libtest-check clean-docs-check clean-rpm


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
endif

DISTCLEANFILES+= config/top.h

maintainer-clean-local:
	find . -type f -name '*~' -exec rm -f '{}' \;
	-rm -f man/*.1
	-rm -f man/*.3
	-rm -f man/*.8
	-rm -rf man/.doctrees/
	-rm -f Makefile.in
	-rm -f aclocal.m4
	-rm -f build-aux/compile
	-rm -f build-aux/config.guess
	-rm -f build-aux/config.sub
	-rm -f build-aux/depcomp
	-rm -f build-aux/install-sh
	-rm -f build-aux/ltmain.sh
	-rm -f build-aux/missing
	-rm -f build-aux/test-driver
	-rm -f build-aux/ylwrap
	-rm -f mem_config.in
	-rm -f config.log
	-rm -f config.status
	-rm -f configure
	-rm -f m4/libtool.m4
	-rm -f m4/ltoptions.m4
	-rm -f m4/ltsugar.m4
	-rm -f m4/ltversion.m4
	-rm -f m4/lt~obsolete.m4
	-rm -f m4/test-driver
	-rmdir build-aux
	-rm -rf ${top_builddir}/html
	-rm -f $(DIST_ARCHIVES)