Fetch the doclength upper bound at most once
[xapian.git] / xapian-core / bin / Makefile.mk
blobb199b8b78988bf96265e0f8a1e6cea4b41f14ff3
1 EXTRA_DIST +=\
2 bin/Makefile
4 bin_PROGRAMS +=\
5 bin/xapian-delve
7 noinst_PROGRAMS =
9 if BUILD_BACKEND_TOOLS
10 bin_PROGRAMS +=\
11 bin/xapian-check\
12 bin/xapian-compact
14 if BUILD_BACKEND_GLASS
15 noinst_PROGRAMS +=\
16 bin/xapian-inspect
17 endif
19 if !MAINTAINER_NO_DOCS
20 dist_man_MANS +=\
21 bin/xapian-check.1\
22 bin/xapian-compact.1\
23 bin/xapian-delve.1
24 endif
25 endif
27 if BUILD_BACKEND_REMOTE
28 bin_PROGRAMS +=\
29 bin/xapian-progsrv\
30 bin/xapian-replicate\
31 bin/xapian-replicate-server\
32 bin/xapian-tcpsrv
34 if !MAINTAINER_NO_DOCS
35 dist_man_MANS +=\
36 bin/xapian-progsrv.1\
37 bin/xapian-replicate.1\
38 bin/xapian-replicate-server.1\
39 bin/xapian-tcpsrv.1
40 endif
41 endif
43 bin_xapian_check_SOURCES = bin/xapian-check.cc
44 bin_xapian_check_LDADD = $(ldflags) $(libxapian_la)
46 bin_xapian_compact_SOURCES = bin/xapian-compact.cc
47 bin_xapian_compact_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
49 bin_xapian_delve_SOURCES = bin/xapian-delve.cc
50 bin_xapian_delve_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
52 bin_xapian_inspect_CPPFLAGS =\
53 $(AM_CPPFLAGS)\
54 -DXAPIAN_REALLY_NO_DEBUG_LOG\
55 -I$(top_srcdir)/backends/glass
56 bin_xapian_inspect_SOURCES = bin/xapian-inspect.cc\
57 api/constinfo.cc\
58 api/error.cc\
59 backends/glass/glass_changes.cc\
60 backends/glass/glass_cursor.cc\
61 backends/glass/glass_freelist.cc\
62 backends/glass/glass_table.cc\
63 backends/glass/glass_version.cc\
64 common/compression_stream.cc\
65 common/errno_to_string.cc\
66 common/io_utils.cc\
67 common/posixy_wrapper.cc\
68 common/str.cc\
69 unicode/description_append.cc\
70 unicode/unicode-data.cc\
71 unicode/utf8itor.cc
73 # XAPIAN_LIBS gives us zlib and any library needed for UUIDs.
74 bin_xapian_inspect_LDADD = $(ldflags) libgetopt.la $(XAPIAN_LIBS)
75 if USE_PROC_FOR_UUID
76 bin_xapian_inspect_SOURCES +=\
77 api/constinfo.cc\
78 common/proc_uuid.cc
79 endif
80 if USE_WIN32_UUID_API
81 bin_xapian_inspect_SOURCES +=\
82 common/win32_uuid.cc
83 endif
85 bin_xapian_progsrv_SOURCES = bin/xapian-progsrv.cc
86 bin_xapian_progsrv_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
88 bin_xapian_replicate_SOURCES = bin/xapian-replicate.cc
89 bin_xapian_replicate_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
91 bin_xapian_replicate_server_SOURCES = bin/xapian-replicate-server.cc
92 bin_xapian_replicate_server_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
94 bin_xapian_tcpsrv_SOURCES = bin/xapian-tcpsrv.cc
95 bin_xapian_tcpsrv_LDADD = $(ldflags) libgetopt.la $(libxapian_la)
97 if DOCUMENTATION_RULES
98 bin/xapian-check.1: bin/xapian-check$(EXEEXT) makemanpage
99 ./makemanpage bin/xapian-check $(srcdir)/bin/xapian-check.cc bin/xapian-check.1
101 bin/xapian-compact.1: bin/xapian-compact$(EXEEXT) makemanpage
102 ./makemanpage bin/xapian-compact $(srcdir)/bin/xapian-compact.cc bin/xapian-compact.1
104 bin/xapian-delve.1: bin/xapian-delve$(EXEEXT) makemanpage
105 ./makemanpage bin/xapian-delve $(srcdir)/bin/xapian-delve.cc bin/xapian-delve.1
107 bin/xapian-progsrv.1: bin/xapian-progsrv$(EXEEXT) makemanpage
108 ./makemanpage bin/xapian-progsrv $(srcdir)/bin/xapian-progsrv.cc bin/xapian-progsrv.1
110 bin/xapian-replicate.1: bin/xapian-replicate$(EXEEXT) makemanpage
111 ./makemanpage bin/xapian-replicate $(srcdir)/bin/xapian-replicate.cc bin/xapian-replicate.1
113 bin/xapian-replicate-server.1: bin/xapian-replicate-server$(EXEEXT) makemanpage
114 ./makemanpage bin/xapian-replicate-server $(srcdir)/bin/xapian-replicate-server.cc bin/xapian-replicate-server.1
116 bin/xapian-tcpsrv.1: bin/xapian-tcpsrv$(EXEEXT) makemanpage
117 ./makemanpage bin/xapian-tcpsrv $(srcdir)/bin/xapian-tcpsrv.cc bin/xapian-tcpsrv.1
118 endif