Database::check(): more consistency checks for chert
[xapian.git] / xapian-applications / omega / Makefile.am
blob98cf4fe31e2cd9ffec9d7824ab5dd4fc2e50d784
1 ## Process this file with automake to produce Makefile.in
3 # `make QUIET=' overrides `./configure --enable-quiet'.
4 # `make QUIET=y' overrides `./configure' without `--enable-quiet'.
5 LIBTOOL = @LIBTOOL@ $(QUIET:y=--quiet)
7 if MAINTAINER_MODE
8 # Export these so that we run the locally installed autotools when building
9 # from a bootstrapped git tree.
10 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
11 endif
13 ACLOCAL_AMFLAGS = -I m4
15 SUBDIRS = . docs
17 BUILT_SOURCES = extra/omegascript.vim
19 EXTRA_DIST =\
20         extra/omegascript.vim \
21         extra/omegascript.vim.in \
22         gen-omegascript-vim \
23         templates/query \
24         templates/topterms \
25         templates/opensearch \
26         templates/godmode \
27         templates/xml \
28         templates/inc/anyalldropbox \
29         templates/inc/anyallradio \
30         templates/inc/toptermsjs \
31         images/nextoff.png \
32         images/next.png \
33         images/page-10.png \
34         images/page-10s.png \
35         images/page-11.png \
36         images/page-11s.png \
37         images/page-1.png \
38         images/page-1s.png \
39         images/page-2.png \
40         images/page-2s.png \
41         images/page-3.png \
42         images/page-3s.png \
43         images/page-4.png \
44         images/page-4s.png \
45         images/page-5.png \
46         images/page-5s.png \
47         images/page-6.png \
48         images/page-6s.png \
49         images/page-7.png \
50         images/page-7s.png \
51         images/page-8.png \
52         images/page-8s.png \
53         images/page-9.png \
54         images/page-9s.png \
55         images/previous.png \
56         images/prevoff.png \
57         images/score-0.png \
58         images/score-10.png \
59         images/score-1.png \
60         images/score-2.png \
61         images/score-3.png \
62         images/score-4.png \
63         images/score-5.png \
64         images/score-6.png \
65         images/score-7.png \
66         images/score-8.png \
67         images/score-9.png \
68         xapian-omega.spec
70 AM_CPPFLAGS = \
71         -I$(top_srcdir)/common \
72         -DCONFIGFILE_SYSTEM=\"$(sysconfdir)/omega.conf\" \
73         -DPKGLIBBINDIR=\"$(pkglibbindir)\"
74 AM_CXXFLAGS += $(XAPIAN_CXXFLAGS)
76 pkglibbindir = $(pkglibdir)/bin
77 pkglibbin_PROGRAMS = omega
78 dist_pkglibbin_SCRIPTS = outlookmsg2html
79 bin_PROGRAMS = omindex scriptindex
80 dist_bin_SCRIPTS = dbi2omega htdig2omega mbox2omega
82 check_PROGRAMS = atomparsetest htmlparsetest md5test urlenctest utf8converttest
83 TESTS = atomparsetest$(EXEEXT)\
84         htmlparsetest$(EXEEXT)\
85         md5test$(EXEEXT)\
86         urlenctest$(EXEEXT)\
87         utf8converttest$(EXEEXT)
89 omegadatadir = $(datadir)/omega
90 dist_omegadata_DATA = htdig2omega.script mbox2omega.script
92 dist_sysconf_DATA = omega.conf
94 noinst_HEADERS = omega.h query.h cgiparam.h\
95  myhtmlparse.h htmlparse.h utils.h configfile.h date.h\
96  commonhelp.h cdb.h cdb_int.h hashterm.h loadfile.h\
97  md5.h md5wrap.h xmlparse.h metaxmlparse.h values.h utf8convert.h\
98  namedentities.h pkglibbindir.h datematchdecider.h sample.h strcasecmp.h\
99  utf8truncate.h diritor.h runfilter.h freemem.h xpsxmlparse.h transform.h\
100  weight.h expand.h svgparse.h urldecode.h urlencode.h unixperm.h atomparse.h\
101  xlsxparse.h opendocparse.h\
102  portability/mkdtemp.h
104 # headers maintained in xapian-core
105 noinst_HEADERS +=\
106         common/append_filename_arg.h\
107         common/gnu_getopt.h\
108         common/msvc_dirent.h\
109         common/noreturn.h\
110         common/omassert.h\
111         common/realtime.h\
112         common/safedirent.h\
113         common/safeerrno.h\
114         common/safefcntl.h\
115         common/safesysselect.h\
116         common/safesysstat.h\
117         common/safesyswait.h\
118         common/safeunistd.h\
119         common/safewindows.h\
120         common/safewinsock2.h\
121         common/str.h\
122         common/stringutils.h
124 AM_LDFLAGS = $(NO_UNDEFINED) $(ICONV_LDFLAGS)
126 # We want to compile transform.cc with PCRE_CFLAGS, but if this adds a -I for
127 # a directory with a different version of iconv, then we get problems (this
128 # has been reported on Mac OS X).  So we only add PCRE_CFLAGS when compiling
129 # transform.cc, using the convenience library technique suggested by the
130 # automake manual.
131 noinst_LTLIBRARIES = libtransform.la
132 libtransform_la_SOURCES = transform.cc
133 libtransform_la_CPPFLAGS = $(PCRE_CFLAGS)
134 libtransform_la_LIBADD = $(PCRE_LIBS)
136 omega_SOURCES = omega.cc query.cc cgiparam.cc utils.cc configfile.cc date.cc\
137  cdb_init.cc cdb_find.cc cdb_hash.cc cdb_unpack.cc loadfile.cc\
138  datematchdecider.cc common/str.cc urlencode.cc weight.cc expand.cc
139 # Not currently used, and we ought to handle non-Unix perms too: unixperm.cc
140 omega_LDADD = $(XAPIAN_LIBS) libtransform.la
142 omindex_SOURCES = omindex.cc myhtmlparse.cc htmlparse.cc\
143  common/getopt.cc commonhelp.cc utils.cc hashterm.cc loadfile.cc md5.cc\
144  md5wrap.cc xmlparse.cc metaxmlparse.cc utf8convert.cc sample.cc diritor.cc\
145  runfilter.cc freemem.cc common/msvc_dirent.cc xpsxmlparse.cc common/str.cc\
146  pkglibbindir.cc svgparse.cc urlencode.cc atomparse.cc xlsxparse.cc\
147  opendocparse.cc
148 if NEED_MKDTEMP
149 omindex_SOURCES += portability/mkdtemp.cc
150 endif
151 omindex_LDADD = $(MAGIC_LIBS) $(XAPIAN_LIBS)
153 scriptindex_SOURCES = scriptindex.cc myhtmlparse.cc htmlparse.cc\
154  common/getopt.cc commonhelp.cc utils.cc hashterm.cc loadfile.cc\
155  common/safe.cc common/stringutils.cc utf8convert.cc utf8truncate.cc
156 scriptindex_LDADD = $(XAPIAN_LIBS)
158 atomparsetest_SOURCES = atomparsetest.cc atomparse.cc htmlparse.cc\
159  myhtmlparse.cc utf8convert.cc
160 atomparsetest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
162 htmlparsetest_SOURCES = htmlparsetest.cc myhtmlparse.cc htmlparse.cc\
163  utf8convert.cc
164 htmlparsetest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
166 md5test_SOURCES = md5test.cc md5wrap.cc md5.cc
167 md5test_LDADD = $(NO_INSTALL)
169 utf8converttest_SOURCES = utf8converttest.cc utf8convert.cc
170 utf8converttest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
172 urlenctest_SOURCES = urlenctest.cc urlencode.cc common/stringutils.cc
173 urlenctest_LDADD = $(NO_INSTALL)
175 if !MAINTAINER_NO_DOCS
176 dist_man_MANS = omindex.1 scriptindex.1
177 MAINTAINERCLEANFILES = $(dist_man_MANS)
178 endif
180 if DOCUMENTATION_RULES
181 omindex.1: omindex$(EXEEXT) makemanpage
182         ./makemanpage ./omindex $(srcdir)/omindex.cc omindex.1
184 scriptindex.1: scriptindex$(EXEEXT) makemanpage
185         ./makemanpage ./scriptindex $(srcdir)/scriptindex.cc scriptindex.1
186 endif
188 if MAINTAINER_MODE
189 extra/omegascript.vim: extra/omegascript.vim.in query.cc configure.ac
190         $(PERL) $(srcdir)/gen-omegascript-vim "$(srcdir)" "$(PACKAGE_VERSION)"
191 endif
193 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"