1 ## Process this file with automake to produce Makefile.in
4 # Export these so that we run the locally installed autotools when building
5 # from a bootstrapped git tree.
6 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
11 my-html-tok.h: gen-myhtmltags Makefile.am common/Tokeniseise.pm myhtmlparse.tokens
12 $(PERL) -I'$(srcdir)/common' '$(srcdir)/gen-myhtmltags' '$(srcdir)' < '$(srcdir)/myhtmlparse.tokens'
14 # Recover from the removal of $@. A full explanation of this is in the
15 # automake manual under the heading "Multiple Outputs".
17 @if test -f $@; then :; else \
18 trap 'rm -rf "$(stamp)-lck" "$(stamp)"' 1 2 13 15; \
19 if mkdir '$(stamp)-lck' 2>/dev/null; then \
21 $(MAKE) $(AM_MAKEFLAGS) '$(stamp)'; \
22 result=$$?; rm -rf '$(stamp)-lck'; exit $$result; \
24 while test -d '$(stamp)-lck'; do sleep 1; done; \
29 multitarget_begin = @rm -f $@-t; touch $@-t
30 multitarget_end = @mv -f $@-t $@
33 mimemap.h docs/inc/ignored.rst docs/inc/mimetypes.rst: $(stamp)
35 $(stamp): gen-mimemap Makefile.am common/Tokeniseise.pm mimemap.tokens
37 $(PERL) -I'$(srcdir)/common' '$(srcdir)/gen-mimemap' '$(srcdir)' < '$(srcdir)/mimemap.tokens'
40 namedents.h: gen-namedents Makefile.am common/Tokeniseise.pm
41 $(PERL) -I'$(srcdir)/common' '$(srcdir)/gen-namedents' '$(srcdir)'
43 BUILT_SOURCES = extra/omegascript.vim my-html-tok.h mimemap.h namedents.h
45 MAINTAINERCLEANFILES = my-html-tok.h mimemap.h namedents.h
48 common/Tokeniseise.pm \
49 extra/omegascript.vim \
50 extra/omegascript.vim.in \
63 templates/opensearch \
66 templates/inc/anyalldropbox \
67 templates/inc/anyallradio \
68 templates/inc/toptermsjs \
109 -I$(top_srcdir)/common \
110 -DCONFIGFILE_SYSTEM=\"$(sysconfdir)/omega.conf\" \
111 -DPKGLIBBINDIR=\"$(pkglibbindir)\"
112 AM_CXXFLAGS += $(XAPIAN_CXXFLAGS)
114 pkglibbindir = $(pkglibdir)/bin
115 pkglibbin_PROGRAMS = omega
116 dist_pkglibbin_SCRIPTS = mhtml2html outlookmsg2html rfc822tohtml vcard2text
117 bin_PROGRAMS = omindex scriptindex omindex-list generate-qrel-file
118 dist_bin_SCRIPTS = dbi2omega htdig2omega mbox2omega postprocess
120 check_PROGRAMS = atomparsetest csvesctest htmlparsetest jsonesctest md5test sdbntest urlenctest utf8converttest
121 dist_check_SCRIPTS = omegatest
122 TESTS = atomparsetest$(EXEEXT)\
124 htmlparsetest$(EXEEXT)\
125 jsonesctest$(EXEEXT)\
130 utf8converttest$(EXEEXT)
132 omegadatadir = $(datadir)/omega
133 dist_omegadata_DATA = htdig2omega.script mbox2omega.script
135 dist_sysconf_DATA = omega.conf
137 noinst_HEADERS = omega.h query.h cgiparam.h index_file.h mime.h\
138 myhtmlparse.h htmlparse.h utils.h configfile.h date.h datetime.h\
139 commonhelp.h cdb.h cdb_int.h failed.h hashterm.h jsonescape.h loadfile.h\
140 md5.h md5wrap.h xmlparse.h metaxmlparse.h values.h utf8convert.h\
141 namedents.h pkglibbindir.h datevalue.h sample.h strcasecmp.h\
142 utf8truncate.h diritor.h runfilter.h freemem.h xpsxmlparse.h transform.h\
143 weight.h expand.h svgparse.h tmpdir.h urldecode.h urlencode.h unixperm.h atomparse.h\
144 xlsxparse.h opendocparse.h msxmlparse.h timegm.h csvescape.h\
145 portability/mkdtemp.h clickmodel/simplifieddbn.h clickmodel/session.h
147 # headers maintained in xapian-core
149 common/append_filename_arg.h\
152 common/msvc_dirent.h\
158 common/safesysselect.h\
159 common/safesysstat.h\
160 common/safesyswait.h\
162 common/safewindows.h\
163 common/safewinsock2.h\
167 AM_LDFLAGS = $(NO_UNDEFINED) $(ICONV_LDFLAGS) $(MAGIC_LDFLAGS)
169 # We want to compile transform.cc with PCRE_CFLAGS, but if this adds a -I for
170 # a directory with a different version of iconv, then we get problems (this
171 # has been reported on Mac OS X). So we only add PCRE_CFLAGS when compiling
172 # transform.cc, using the convenience library technique suggested by the
174 noinst_LTLIBRARIES = libtransform.la
175 libtransform_la_SOURCES = transform.cc
176 libtransform_la_CPPFLAGS = $(PCRE_CFLAGS)
177 libtransform_la_LIBADD = $(PCRE_LIBS)
179 omega_SOURCES = omega.cc query.cc cgiparam.cc utils.cc configfile.cc date.cc\
180 cdb_init.cc cdb_find.cc cdb_hash.cc cdb_unpack.cc jsonescape.cc loadfile.cc\
181 datevalue.cc common/str.cc sample.cc urlencode.cc weight.cc expand.cc\
182 csvescape.cc timegm.cc md5.cc md5wrap.cc clickmodel/simplifieddbn.cc
183 # Not currently used, and we ought to handle non-Unix perms too: unixperm.cc
184 omega_LDADD = $(XAPIAN_LIBS) libtransform.la
186 omindex_SOURCES = omindex.cc myhtmlparse.cc htmlparse.cc index_file.cc mime.cc\
187 common/getopt.cc commonhelp.cc utils.cc hashterm.cc loadfile.cc md5.cc\
188 md5wrap.cc xmlparse.cc metaxmlparse.cc utf8convert.cc sample.cc diritor.cc\
189 runfilter.cc freemem.cc common/msvc_dirent.cc xpsxmlparse.cc common/str.cc\
190 pkglibbindir.cc svgparse.cc tmpdir.cc urlencode.cc atomparse.cc xlsxparse.cc\
191 opendocparse.cc common/keyword.cc msxmlparse.cc common/safe.cc timegm.cc\
194 omindex_SOURCES += portability/mkdtemp.cc
196 omindex_LDADD = $(MAGIC_LIBS) $(XAPIAN_LIBS) $(ZLIB_LIBS)
198 scriptindex_SOURCES = scriptindex.cc myhtmlparse.cc htmlparse.cc\
199 common/getopt.cc common/str.cc commonhelp.cc utils.cc hashterm.cc loadfile.cc\
200 utf8convert.cc utf8truncate.cc\
201 common/keyword.cc timegm.cc datetime.cc
202 scriptindex_LDADD = $(XAPIAN_LIBS)
204 omindex_list_SOURCES = common/getopt.cc omindex-list.cc
205 omindex_list_LDADD = $(XAPIAN_LIBS)
207 generate_qrel_file_SOURCES = generate-qrel-file.cc clickmodel/simplifieddbn.cc\
209 generate_qrel_file_LDADD = $(XAPIAN_LIBS)
211 atomparsetest_SOURCES = atomparsetest.cc atomparse.cc htmlparse.cc\
212 myhtmlparse.cc utf8convert.cc common/keyword.cc datetime.cc timegm.cc
213 atomparsetest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
215 htmlparsetest_SOURCES = htmlparsetest.cc myhtmlparse.cc htmlparse.cc\
216 utf8convert.cc common/keyword.cc datetime.cc timegm.cc
217 htmlparsetest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
219 md5test_SOURCES = md5test.cc md5wrap.cc md5.cc
220 md5test_LDADD = $(NO_INSTALL)
222 utf8converttest_SOURCES = utf8converttest.cc utf8convert.cc
223 utf8converttest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
225 urlenctest_SOURCES = urlenctest.cc urlencode.cc
226 urlenctest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
228 csvesctest_SOURCES = csvesctest.cc csvescape.cc
229 csvesctest_LDADD = $(NO_INSTALL)
231 sdbntest_SOURCES = clickmodel/tests/sdbntest.cc clickmodel/simplifieddbn.cc
232 sdbntest_LDADD = $(NO_INSTALL)
234 jsonesctest_SOURCES = jsonesctest.cc jsonescape.cc
235 jsonesctest_LDADD = $(NO_INSTALL) $(XAPIAN_LIBS)
237 if !MAINTAINER_NO_DOCS
238 dist_man_MANS = omindex.1 scriptindex.1 omindex-list.1
239 MAINTAINERCLEANFILES += $(dist_man_MANS)
242 if DOCUMENTATION_RULES
243 omindex.1: omindex$(EXEEXT) makemanpage
244 ./makemanpage ./omindex $(srcdir)/omindex.cc omindex.1
246 scriptindex.1: scriptindex$(EXEEXT) makemanpage
247 ./makemanpage ./scriptindex $(srcdir)/scriptindex.cc scriptindex.1
249 omindex-list.1: omindex-list$(EXEEXT) makemanpage
250 ./makemanpage ./omindex-list $(srcdir)/omindex-list.cc omindex-list.1
254 extra/omegascript.vim: extra/omegascript.vim.in query.cc configure.ac
255 $(PERL) $(srcdir)/gen-omegascript-vim "$(srcdir)" "$(PACKAGE_VERSION)"
258 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"
261 $(MAKE) check SCRIPTINDEX='${bindir}/scriptindex' OMEGA='${pkglibbindir}/omega'