number_of_hosts <-- encapsulated.
[m6w6/libmemcached] / docs / Makefile.am
1 # This file generates all of man/html pages that we use for documentation.
2 #
3 # When hacking this file you need to know that we take .pod files and turn
4 # them into .pop files. .pop files are 1=1 for man pages, but one .pod
5 # file may generate many .pop files.
6 #
7 # -Brian
8 #
9 #
10 CLEANFILES= *.1 *.3 *.html *.pop *.tmp
11
12 BUILT_SOURCES=
13
14 EXTRA_DIST= make_index.pl
15
16 AUTO_PAGES= \
17 memcached_increment.pop \
18 memcached_increment_with_initial.pop \
19 memcached_decrement.pop \
20 memcached_decrement_with_initial.pop
21 BUILT_SOURCES += ${AUTO_PAGES}
22
23 BEHAVIOR_PAGES= \
24 memcached_behavior_get.pop \
25 memcached_behavior_set.pop
26 BUILT_SOURCES += ${BEHAVIOR_PAGES}
27
28 CALLBACK_PAGES= \
29 memcached_callback_get.pop \
30 memcached_callback_set.pop
31 BUILT_SOURCES += ${CALLBACK_PAGES}
32
33 CREATE_PAGES= \
34 memcached_clone.pop \
35 memcached_create.pop \
36 memcached_free.pop \
37 memcached_servers_reset.pop
38 BUILT_SOURCES += ${CREATE_PAGES}
39
40 DELETE_PAGES= \
41 memcached_delete.pop \
42 memcached_delete_by_key.pop
43 BUILT_SOURCES += ${DELETE_PAGES}
44
45 GENERIC_PAGES= \
46 libmemcached.pop \
47 libmemcached_examples.pop \
48 libmemcachedutil.pop \
49 memcached_analyze.pop \
50 memcached_dump.pop \
51 memcached_flush.pop \
52 memcached_flush_buffers.pop \
53 memcached_generate_hash_value.pop \
54 memcached_quit.pop \
55 memcached_strerror.pop \
56 memcached_verbosity.pop \
57 memcapable.pop \
58 memcat.pop \
59 memcp.pop \
60 memdump.pop \
61 memerror.pop \
62 memflush.pop \
63 memrm.pop \
64 memslap.pop \
65 memstat.pop
66 BUILT_SOURCES += ${GENERIC_PAGES}
67
68 GET_PAGES= \
69 memcached_get.pop \
70 memcached_get_by_key.pop \
71 memcached_fetch_result.pop \
72 memcached_fetch_execute.pop \
73 memcached_mget.pop \
74 memcached_mget_by_key.pop \
75 memcached_mget_execute.pop \
76 memcached_mget_execute_by_key.pop \
77 memcached_fetch.pop
78 BUILT_SOURCES += ${GET_PAGES}
79
80 MEMORY_ALLOCATORS_PAGES= \
81 memcached_get_memory_allocators.pop \
82 memcached_set_memory_allocators.pop
83 BUILT_SOURCES += ${MEMORY_ALLOCATORS_PAGES}
84
85 POOL_PAGES= \
86 memcached_pool_behavior_get.pop \
87 memcached_pool_behavior_set.pop \
88 memcached_pool_create.pop \
89 memcached_pool_destroy.pop \
90 memcached_pool_pop.pop \
91 memcached_pool_push.pop
92 BUILT_SOURCES += ${POOL_PAGES}
93
94 RESULT_PAGES= \
95 memcached_result_cas.pop \
96 memcached_result_create.pop \
97 memcached_result_flags.pop \
98 memcached_result_free.pop \
99 memcached_result_key_length.pop \
100 memcached_result_key_value.pop \
101 memcached_result_length.pop \
102 memcached_result_st.pop \
103 memcached_result_value.pop
104 BUILT_SOURCES += ${RESULT_PAGES}
105
106
107 SERVER_PAGES= \
108 memcached_server_count.pop \
109 memcached_server_cursor.pop \
110 memcached_server_list.pop \
111 memcached_server_add.pop \
112 memcached_server_add_unix_socket.pop \
113 memcached_server_push.pop
114 BUILT_SOURCES += ${SERVER_PAGES}
115
116 SERVER_ST_PAGES= \
117 memcached_server_list_free.pop \
118 memcached_server_list_count.pop \
119 memcached_server_list_append.pop \
120 memcached_servers_parse.pop
121 BUILT_SOURCES += ${SERVER_ST_PAGES}
122
123 SET_PAGES= \
124 memcached_set.pop \
125 memcached_set_by_key.pop \
126 memcached_cas.pop \
127 memcached_cas_by_key.pop \
128 memcached_replace.pop \
129 memcached_replace_by_key.pop \
130 memcached_add.pop \
131 memcached_add_by_key.pop \
132 memcached_prepend.pop \
133 memcached_prepend_by_key.pop \
134 memcached_append.pop \
135 memcached_append_by_key.pop
136 BUILT_SOURCES += ${SET_PAGES}
137
138 STATS_PAGES= \
139 memcached_stat.pop \
140 memcached_stat_get_keys.pop .pop\
141 memcached_stat_get_value.pop \
142 memcached_stat_servername.pop
143 BUILT_SOURCES += ${STATS_PAGES}
144
145 USER_DATA_PAGES= \
146 memcached_get_user_data.pop \
147 memcached_set_user_data.pop
148 BUILT_SOURCES += ${USER_DATA_PAGES}
149
150 VERSION_PAGES= \
151 memcached_version.pop \
152 memcached_lib_version.pop
153 BUILT_SOURCES += ${VERSION_PAGES}
154
155
156 #
157 # These are for libhashkit
158 #
159 HASHKIT_CREATE_PAGES= \
160 hashkit_is_allocated.pop \
161 hashkit_create.pop \
162 hashkit_clone.pop \
163 hashkit_free.pop
164 BUILT_SOURCES += ${HASHKIT_CREATE_PAGES}
165
166 HASHKIT_FUNCTIONS_PAGES= \
167 hashkit_crc32.pop \
168 hashkit_fnv1_32.pop \
169 hashkit_fnv1_64.pop \
170 hashkit_fnv1a_32.pop \
171 hashkit_fnv1a_64.pop \
172 hashkit_functions.pop \
173 hashkit_hsieh.pop \
174 hashkit_jenkins.pop \
175 hashkit_md5.pop \
176 hashkit_murmur.pop
177 BUILT_SOURCES += ${HASHKIT_FUNCTIONS_PAGES}
178
179 HASHKIT_ST_PAGES= \
180 hashkit_value.pop
181 BUILT_SOURCES += ${HASHKIT_ST_PAGES}
182
183
184 HTML_FILES= \
185 hashkit_clone.html \
186 hashkit_crc32.html \
187 hashkit_create.html \
188 hashkit_fnv1_32.html \
189 hashkit_fnv1_64.html \
190 hashkit_fnv1a_32.html \
191 hashkit_fnv1a_64.html \
192 hashkit_free.html \
193 hashkit_functions.html \
194 hashkit_hsieh.html \
195 hashkit_is_allocated.html \
196 hashkit_jenkins.html \
197 hashkit_md5.html \
198 hashkit_murmur.html \
199 hashkit_value.html \
200 libmemcached_examples.html \
201 libmemcached.html \
202 libmemcachedutil.html \
203 memcached_add_by_key.html \
204 memcached_add.html \
205 memcached_analyze.html \
206 memcached_append_by_key.html \
207 memcached_append.html \
208 memcached_behavior_get.html \
209 memcached_behavior_set.html \
210 memcached_callback_get.html \
211 memcached_callback_set.html \
212 memcached_cas_by_key.html \
213 memcached_cas.html \
214 memcached_clone.html \
215 memcached_create.html \
216 memcached_decrement.html \
217 memcached_decrement_with_initial.html \
218 memcached_delete_by_key.html \
219 memcached_delete.html \
220 memcached_dump.html \
221 memcached_fetch_execute.html \
222 memcached_fetch.html \
223 memcached_fetch_result.html \
224 memcached_flush_buffers.html \
225 memcached_flush.html \
226 memcached_free.html \
227 memcached_generate_hash_value.html \
228 memcached_get_by_key.html \
229 memcached_get_memory_allocators.html \
230 memcached_get.html \
231 memcached_get_user_data.html \
232 memcached_increment.html \
233 memcached_increment_with_initial.html \
234 memcached_lib_version.html \
235 memcached_mget_by_key.html \
236 memcached_mget_execute_by_key.html \
237 memcached_mget_execute.html \
238 memcached_mget.html \
239 memcached_pool_behavior_get.html \
240 memcached_pool_behavior_set.html \
241 memcached_pool_create.html \
242 memcached_pool_destroy.html \
243 memcached_pool_pop.html \
244 memcached_pool_push.html \
245 memcached_prepend_by_key.html \
246 memcached_prepend.html \
247 memcached_quit.html \
248 memcached_replace_by_key.html \
249 memcached_replace.html \
250 memcached_result_cas.html \
251 memcached_result_create.html \
252 memcached_result_flags.html \
253 memcached_result_free.html \
254 memcached_result_key_length.html \
255 memcached_result_key_value.html \
256 memcached_result_length.html \
257 memcached_result_st.html \
258 memcached_result_value.html \
259 memcached_server_add.html \
260 memcached_server_add_unix_socket.html \
261 memcached_server_count.html \
262 memcached_server_cursor.html \
263 memcached_server_list_append.html \
264 memcached_server_list_count.html \
265 memcached_server_list_free.html \
266 memcached_server_list.html \
267 memcached_server_push.html \
268 memcached_servers_parse.html \
269 memcached_set_by_key.html \
270 memcached_set_memory_allocators.html \
271 memcached_set.html \
272 memcached_set_user_data.html \
273 memcached_stat_get_keys.html \
274 memcached_stat_get_value.html \
275 memcached_stat.html \
276 memcached_stat_servername.html \
277 memcached_strerror.html \
278 memcached_verbosity.html \
279 memcached_version.html \
280 memcapable.html \
281 memcat.html \
282 memcp.html \
283 memdump.html \
284 memerror.html \
285 memflush.html \
286 memrm.html \
287 memslap.html \
288 memstat.html
289
290 POD_FILES= \
291 hashkit_create.pod \
292 hashkit_functions.pod \
293 hashkit_value.pod \
294 libmemcached.pod \
295 libmemcached_examples.pod \
296 libmemcachedutil.pod \
297 memcached_analyze.pod \
298 memcached_auto.pod \
299 memcached_behavior.pod \
300 memcached_callback.pod \
301 memcached_create.pod \
302 memcached_delete.pod \
303 memcached_dump.pod \
304 memcached_flush.pod \
305 memcached_flush_buffers.pod \
306 memcached_generate_hash_value.pod \
307 memcached_get.pod \
308 memcached_memory_allocators.pod \
309 memcached_pool.pod \
310 memcached_quit.pod \
311 memcached_server_st.pod \
312 memcached_servers.pod \
313 memcached_set.pod \
314 memcached_stats.pod \
315 memcached_strerror.pod \
316 memcached_user_data.pod \
317 memcached_verbosity.pod \
318 memcached_version.pod \
319 memcapable.pod \
320 memcat.pod \
321 memcp.pod \
322 memdump.pod \
323 memerror.pod \
324 memflush.pod \
325 memrm.pod \
326 memslap.pod \
327 memstat.pod
328 EXTRA_DIST+= $(POD_FILES)
329
330 man_MANS = \
331 hashkit_clone.3 \
332 hashkit_crc32.3 \
333 hashkit_create.3 \
334 hashkit_fnv1_32.3 \
335 hashkit_fnv1_64.3 \
336 hashkit_fnv1a_32.3 \
337 hashkit_fnv1a_64.3 \
338 hashkit_free.3 \
339 hashkit_functions.3 \
340 hashkit_hsieh.3 \
341 hashkit_is_allocated.3 \
342 hashkit_jenkins.3 \
343 hashkit_md5.3 \
344 hashkit_murmur.3 \
345 hashkit_value.3 \
346 libmemcached.3 \
347 libmemcached_examples.3 \
348 memcached_add.3 \
349 memcached_add_by_key.3 \
350 memcached_analyze.3 \
351 memcached_append.3 \
352 memcached_append_by_key.3 \
353 memcached_behavior_get.3 \
354 memcached_behavior_set.3 \
355 memcached_callback_get.3 \
356 memcached_callback_set.3 \
357 memcached_cas.3 \
358 memcached_cas_by_key.3 \
359 memcached_clone.3 \
360 memcached_create.3 \
361 memcached_decrement.3 \
362 memcached_decrement_with_initial.3 \
363 memcached_delete.3 \
364 memcached_delete_by_key.3 \
365 memcached_dump.3 \
366 memcached_fetch.3 \
367 memcached_fetch_execute.3 \
368 memcached_fetch_result.3 \
369 memcached_flush_buffers.3 \
370 memcached_free.3 \
371 memcached_generate_hash_value.3 \
372 memcached_get.3 \
373 memcached_get_by_key.3 \
374 memcached_get_memory_allocators.3 \
375 memcached_get_user_data.3 \
376 memcached_increment.3 \
377 memcached_increment_with_initial.3 \
378 memcached_lib_version.3 \
379 memcached_mget.3 \
380 memcached_mget_by_key.3 \
381 memcached_mget_execute.3 \
382 memcached_mget_execute_by_key.3 \
383 memcached_prepend.3 \
384 memcached_prepend_by_key.3 \
385 memcached_quit.3 \
386 memcached_replace.3 \
387 memcached_replace_by_key.3 \
388 memcached_server_add.3 \
389 memcached_server_count.3 \
390 memcached_server_cursor.3 \
391 memcached_server_list.3 \
392 memcached_server_list_append.3 \
393 memcached_server_list_count.3 \
394 memcached_server_list_free.3 \
395 memcached_server_push.3 \
396 memcached_servers_parse.3 \
397 memcached_set.3 \
398 memcached_set_by_key.3 \
399 memcached_set_memory_allocators.3 \
400 memcached_set_user_data.3 \
401 memcached_stat.3 \
402 memcached_stat_get_keys.3 \
403 memcached_stat_get_value.3 \
404 memcached_stat_servername.3 \
405 memcached_strerror.3 \
406 memcached_verbosity.3 \
407 memcached_version.3 \
408 memcapable.1 \
409 memcat.1 \
410 memcp.1 \
411 memdump.1 \
412 memerror.1 \
413 memflush.1 \
414 memrm.1 \
415 memslap.1 \
416 memstat.1
417
418 if BUILD_LIBMEMCACHEDUTIL
419 man_MANS+= \
420 libmemcachedutil.3 \
421 memcached_pool_behavior_set.3 \
422 memcached_pool_behavior_get.3 \
423 memcached_pool_create.3 \
424 memcached_pool_destroy.3 \
425 memcached_pool_push.3 \
426 memcached_pool_pop.3
427 endif
428
429
430 ${CREATE_PAGES}:
431 @rm -f $@
432 ln -s ${top_srcdir}/docs/memcached_create.pod ${top_builddir}/docs/$@
433
434 ${SET_PAGES}:
435 @rm -f $@
436 ln -s ${top_srcdir}/docs/memcached_set.pod ${top_builddir}/docs/$@
437
438 ${DELETE_PAGES}:
439 @rm -f $@
440 ln -s ${top_srcdir}/docs/memcached_delete.pod ${top_builddir}/docs/$@
441
442 ${AUTO_PAGES}:
443 @rm -f $@
444 ln -s ${top_srcdir}/docs/memcached_auto.pod ${top_builddir}/docs/$@
445
446 ${GET_PAGES}:
447 @rm -f $@
448 ln -s ${top_srcdir}/docs/memcached_get.pod ${top_builddir}/docs/$@
449
450 ${SERVER_PAGES}:
451 @rm -f $@
452 ln -s ${top_srcdir}/docs/memcached_servers.pod ${top_builddir}/docs/$@
453
454 ${SERVER_ST_PAGES}:
455 @rm -f $@
456 ln -s ${top_srcdir}/docs/memcached_server_st.pod ${top_builddir}/docs/$@
457
458 ${GENERIC_PAGES}:
459 @rm -f $@
460 ln -s ${top_srcdir}/docs/$*.pod ${top_builddir}/docs/$@
461
462 ${BEHAVIOR_PAGES}:
463 @rm -f $@
464 ln -s ${top_srcdir}/docs/memcached_behavior.pod ${top_builddir}/docs/$@
465
466 ${CALLBACK_PAGES}:
467 @rm -f $@
468 ln -s ${top_srcdir}/docs/memcached_callback.pod ${top_builddir}/docs/$@
469
470 ${STATS_PAGES}:
471 @rm -f $@
472 ln -s ${top_srcdir}/docs/memcached_stats.pod ${top_builddir}/docs/$@
473
474 ${RESULT_PAGES}:
475 @rm -f $@
476 ln -s ${top_srcdir}/docs/memcached_result_st.pod ${top_builddir}/docs/$@
477
478 ${VERSION_PAGES}:
479 @rm -f $@
480 ln -s ${top_srcdir}/docs/memcached_version.pod ${top_builddir}/docs/$@
481
482 ${MEMORY_ALLOCATORS_PAGES}:
483 @rm -f $@
484 ln -s ${top_srcdir}/docs/memcached_memory_allocators.pod ${top_builddir}/docs/$@
485
486 ${USER_DATA_PAGES}:
487 @rm -f $@
488 ln -s ${top_srcdir}/docs/memcached_user_data.pod ${top_builddir}/docs/$@
489
490
491 ${POOL_PAGES}:
492 @rm -f $@
493 ln -s ${top_srcdir}/docs/memcached_pool.pod ${top_builddir}/docs/$@
494
495 ${HASHKIT_CREATE_PAGES}:
496 @rm -f $@
497 ln -s ${top_srcdir}/docs/hashkit_create.pod ${top_builddir}/docs/$@
498
499
500 ${HASHKIT_FUNCTIONS_PAGES}:
501 @rm -f $@
502 ln -s ${top_srcdir}/docs/hashkit_functions.pod ${top_builddir}/docs/$@
503
504 ${HASHKIT_ST_PAGES}:
505 @rm -f $@
506 ln -s ${top_srcdir}/docs/hashkit_value.pod ${top_builddir}/docs/$@
507
508 test-docs: $(POD_FILES)
509 ${PODCHECKER} $(top_srcdir)/docs/$?
510
511 html-local: html-pages html-index
512
513 html-pages: $(HTML_FILES)
514
515 html-index: html-pages
516 perl make_index.pl *.html > index.html
517
518 SUFFIXES= .pop .pod .html .1 .3
519
520 .pop: ${_set}
521
522 .pop.html:
523 pod2html --infile=$< > $@
524
525 .pop.1:
526 ${POD2MAN} -c "$*" -r "" -s 1 $< > $@
527
528 .pop.3:
529 ${POD2MAN} -c "$*" -r "" -s 3 $< > $@