Merge lp:~tangent-org/libmemcached/1.0-build/ Build: jenkins-Libmemcached-241
[m6w6/libmemcached] / Makefile.am
1 # vim:ft=automake
2
3 ACLOCAL_AMFLAGS = -I m4 -I libtest/m4
4
5 # includes append to these:
6 SUFFIXES =
7 .PHONY =
8 TESTS =
9 XFAIL_TESTS =
10 CLEANFILES =
11 DISTCLEANFILES =
12 bin_PROGRAMS =
13 noinst_HEADERS =
14 lib_LTLIBRARIES =
15 man_MANS =
16 noinst_LTLIBRARIES =
17 noinst_PROGRAMS =
18 include_HEADERS =
19 nobase_include_HEADERS =
20 check_PROGRAMS =
21 EXTRA_HEADERS =
22 BUILT_SOURCES=
23 EXTRA_DIST=
24 dist_man_MANS=
25 MAINTAINERCLEANFILES=
26
27 #includes additional rules from aminclude.am
28 @INC_AMINCLUDE@
29
30 DISTCLEANFILES+= aminclude.am
31
32 EXTRA_DIST+= .quickly
33 EXTRA_DIST+= README.FIRST
34 EXTRA_DIST+= README.win32
35
36 aclocaldir= $(datadir)/aclocal
37 dist_aclocal_DATA=
38
39 # Build targets for Windows
40 if BUILD_WIN32
41 include libhashkit-1.0/include.am
42 include libhashkit/include.am
43 include libmemcached/include.am
44 include libmemcached-1.0/include.am
45 else
46
47 include libtest/include.am
48
49 include libhashkit-1.0/include.am
50 include libmemcached-1.0/include.am
51
52 if BUILD_LIBMEMCACHED_PROTOCOL
53 include libmemcachedprotocol-0.0/include.am
54 endif
55
56 include libmemcachedutil-1.0/include.am
57
58 include clients/include.am
59 include docs/include.am
60 include man/include.am
61
62 if BUILD_LIBMEMCACHED_PROTOCOL
63 include example/include.am
64 endif
65
66 include libhashkit/include.am
67 include libmemcached/include.am
68 include libmemcachedutil/include.am
69
70 if BUILD_LIBMEMCACHED_PROTOCOL
71 include libmemcachedprotocol/include.am
72 endif
73
74 include libmemcachedinternal/include.am
75 include libmemcachedinternal/util/include.am
76 include rpm/include.am
77 include support/include.am
78 include tests/include.am
79 include util/include.am
80 include win32/include.am
81
82 include m4/include.am
83 endif
84
85 TESTS += ${bin_PROGRAMS}
86 TESTS += ${check_PROGRAMS}
87 XFAIL_TESTS += ${bin_PROGRAMS}
88
89 if ! BUILD_WIN32
90
91 merge-clean:
92 @find ./ | $(GREP) \.gcda | xargs rm -f
93 @find ./ | $(GREP) \.gcno | xargs rm -f
94 @find ./ | $(GREP) \.gz | xargs rm -f
95 @find ./ | $(GREP) \.moved | xargs rm -r -f
96 @find ./ | $(GREP) \\.orig | xargs rm -f
97 @find ./ | $(GREP) \.rej | xargs rm -f
98 @rm -f *\.rpm
99 @find ./ | $(GREP) \.THIS | xargs rm -f
100 @find ./ | $(GREP) \.OTHER | xargs rm -f
101 @find ./ | $(GREP) \.BASE | xargs rm -f
102 @find ./ | $(GREP) \~$$ | xargs rm -f
103 @echo "Files that need to be either removed or checked in:"
104 @bzr unknowns
105
106 clean-local: clean-libtest-check clean-docs-check
107
108
109 lcov: lcov-clean check
110 @echo
111 @echo " ------------------------------------------------------"
112 @echo "Make sure ./configure was run with '--enable-coverage'"
113 @echo "------------------------------------------------------"
114 @echo
115 @cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out
116 @genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
117
118 lcov-clean: clean
119 @rm -rf lcov */lcov.out
120 @find . -name '*.gcno' | xargs rm -f
121 @find . -name '*.gcda' | xargs rm -f
122 endif
123
124 DISTCLEANFILES+= config/top.h
125
126 maintainer-clean-local:
127 find . -type f -name '*~' -exec rm -f '{}' \;
128 -rm -f @PACKAGE@-*.rpm
129 -rm -f @PACKAGE@-*.tar.gz
130 -rm -f man/*.1
131 -rm -f man/*.3
132 -rm -f man/*.8
133 -rm -rf man/.doctrees/
134 -rm -f Makefile.in
135 -rm -f aclocal.m4
136 -rm -f build-aux/compile
137 -rm -f build-aux/config.guess
138 -rm -f build-aux/config.sub
139 -rm -f build-aux/depcomp
140 -rm -f build-aux/install-sh
141 -rm -f build-aux/ltmain.sh
142 -rm -f build-aux/missing
143 -rm -f mem_config.in
144 -rm -f config.log
145 -rm -f config.status
146 -rm -f configure
147 -rm -f m4/libtool.m4
148 -rm -f m4/ltoptions.m4
149 -rm -f m4/ltsugar.m4
150 -rm -f m4/ltversion.m4
151 -rm -f m4/lt~obsolete.m4
152 -rmdir build-aux
153 -rm -rf ${top_builddir}/html