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