1 # This file generates all of man/html pages that we use for documentation.
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.
10 CLEANFILES= *.1 *.3 *.html *.pop *.tmp
14 EXTRA_DIST= make_index.pl
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}
24 memcached_behavior_get.pop \
25 memcached_behavior_set.pop
26 BUILT_SOURCES += ${BEHAVIOR_PAGES}
29 memcached_callback_get.pop \
30 memcached_callback_set.pop
31 BUILT_SOURCES += ${CALLBACK_PAGES}
35 memcached_create.pop \
37 memcached_servers_reset.pop
38 BUILT_SOURCES += ${CREATE_PAGES}
41 memcached_delete.pop \
42 memcached_delete_by_key.pop
43 BUILT_SOURCES += ${DELETE_PAGES}
47 libmemcached_examples.pop \
48 libmemcachedutil.pop \
49 memcached_analyze.pop \
52 memcached_flush_buffers.pop \
53 memcached_generate_hash_value.pop \
55 memcached_strerror.pop \
56 memcached_verbosity.pop \
66 BUILT_SOURCES += ${GENERIC_PAGES}
70 memcached_get_by_key.pop \
71 memcached_fetch_result.pop \
72 memcached_fetch_execute.pop \
74 memcached_mget_by_key.pop \
75 memcached_mget_execute.pop \
76 memcached_mget_execute_by_key.pop \
78 BUILT_SOURCES += ${GET_PAGES}
80 MEMORY_ALLOCATORS_PAGES= \
81 memcached_get_memory_allocators.pop \
82 memcached_set_memory_allocators.pop
83 BUILT_SOURCES += ${MEMORY_ALLOCATORS_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}
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}
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}
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}
125 memcached_set_by_key.pop \
127 memcached_cas_by_key.pop \
128 memcached_replace.pop \
129 memcached_replace_by_key.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}
140 memcached_stat_get_keys.pop .pop\
141 memcached_stat_get_value.pop \
142 memcached_stat_servername.pop
143 BUILT_SOURCES += ${STATS_PAGES}
146 memcached_get_user_data.pop \
147 memcached_set_user_data.pop
148 BUILT_SOURCES += ${USER_DATA_PAGES}
151 memcached_version.pop \
152 memcached_lib_version.pop
153 BUILT_SOURCES += ${VERSION_PAGES}
157 # These are for libhashkit
159 HASHKIT_CREATE_PAGES= \
160 hashkit_is_allocated.pop \
164 BUILT_SOURCES += ${HASHKIT_CREATE_PAGES}
166 HASHKIT_FUNCTIONS_PAGES= \
168 hashkit_fnv1_32.pop \
169 hashkit_fnv1_64.pop \
170 hashkit_fnv1a_32.pop \
171 hashkit_fnv1a_64.pop \
172 hashkit_functions.pop \
174 hashkit_jenkins.pop \
177 BUILT_SOURCES += ${HASHKIT_FUNCTIONS_PAGES}
181 BUILT_SOURCES += ${HASHKIT_ST_PAGES}
187 hashkit_create.html \
188 hashkit_fnv1_32.html \
189 hashkit_fnv1_64.html \
190 hashkit_fnv1a_32.html \
191 hashkit_fnv1a_64.html \
193 hashkit_functions.html \
195 hashkit_is_allocated.html \
196 hashkit_jenkins.html \
198 hashkit_murmur.html \
200 libmemcached_examples.html \
202 libmemcachedutil.html \
203 memcached_add_by_key.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 \
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 \
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 \
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 \
292 hashkit_functions.pod \
295 libmemcached_examples.pod \
296 libmemcachedutil.pod \
297 memcached_analyze.pod \
299 memcached_behavior.pod \
300 memcached_callback.pod \
301 memcached_create.pod \
302 memcached_delete.pod \
304 memcached_flush.pod \
305 memcached_flush_buffers.pod \
306 memcached_generate_hash_value.pod \
308 memcached_memory_allocators.pod \
311 memcached_server_st.pod \
312 memcached_servers.pod \
314 memcached_stats.pod \
315 memcached_strerror.pod \
316 memcached_user_data.pod \
317 memcached_verbosity.pod \
318 memcached_version.pod \
328 EXTRA_DIST+= $(POD_FILES)
339 hashkit_functions.3 \
341 hashkit_is_allocated.3 \
347 libmemcached_examples.3 \
349 memcached_add_by_key.3 \
350 memcached_analyze.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 \
358 memcached_cas_by_key.3 \
361 memcached_decrement.3 \
362 memcached_decrement_with_initial.3 \
364 memcached_delete_by_key.3 \
367 memcached_fetch_execute.3 \
368 memcached_fetch_result.3 \
369 memcached_flush_buffers.3 \
371 memcached_generate_hash_value.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 \
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 \
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 \
398 memcached_set_by_key.3 \
399 memcached_set_memory_allocators.3 \
400 memcached_set_user_data.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 \
418 if BUILD_LIBMEMCACHEDUTIL
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 \
432 ln -s ${top_srcdir}/docs/memcached_create.pod ${top_builddir}/docs/$@
436 ln -s ${top_srcdir}/docs/memcached_set.pod ${top_builddir}/docs/$@
440 ln -s ${top_srcdir}/docs/memcached_delete.pod ${top_builddir}/docs/$@
444 ln -s ${top_srcdir}/docs/memcached_auto.pod ${top_builddir}/docs/$@
448 ln -s ${top_srcdir}/docs/memcached_get.pod ${top_builddir}/docs/$@
452 ln -s ${top_srcdir}/docs/memcached_servers.pod ${top_builddir}/docs/$@
456 ln -s ${top_srcdir}/docs/memcached_server_st.pod ${top_builddir}/docs/$@
460 ln -s ${top_srcdir}/docs/$*.pod ${top_builddir}/docs/$@
464 ln -s ${top_srcdir}/docs/memcached_behavior.pod ${top_builddir}/docs/$@
468 ln -s ${top_srcdir}/docs/memcached_callback.pod ${top_builddir}/docs/$@
472 ln -s ${top_srcdir}/docs/memcached_stats.pod ${top_builddir}/docs/$@
476 ln -s ${top_srcdir}/docs/memcached_result_st.pod ${top_builddir}/docs/$@
480 ln -s ${top_srcdir}/docs/memcached_version.pod ${top_builddir}/docs/$@
482 ${MEMORY_ALLOCATORS_PAGES}:
484 ln -s ${top_srcdir}/docs/memcached_memory_allocators.pod ${top_builddir}/docs/$@
488 ln -s ${top_srcdir}/docs/memcached_user_data.pod ${top_builddir}/docs/$@
493 ln -s ${top_srcdir}/docs/memcached_pool.pod ${top_builddir}/docs/$@
495 ${HASHKIT_CREATE_PAGES}:
497 ln -s ${top_srcdir}/docs/hashkit_create.pod ${top_builddir}/docs/$@
500 ${HASHKIT_FUNCTIONS_PAGES}:
502 ln -s ${top_srcdir}/docs/hashkit_functions.pod ${top_builddir}/docs/$@
506 ln -s ${top_srcdir}/docs/hashkit_value.pod ${top_builddir}/docs/$@
508 test-docs: $(POD_FILES)
509 ${PODCHECKER} $(top_srcdir)/docs/$?
511 html-local: html-pages html-index
513 html-pages: $(HTML_FILES)
515 html-index: html-pages
516 perl make_index.pl *.html > index.html
518 SUFFIXES= .pop .pod .html .1 .3
523 pod2html --infile=$< > $@
526 ${POD2MAN} -c "$*" -r "" -s 1 $< > $@
529 ${POD2MAN} -c "$*" -r "" -s 3 $< > $@