replace_document: Only force load values for same docid
[xapian.git] / xapian-letor / Makefile.am
blob99a9e563f0b3a21a27f4c9df2b8e6fbc4d31fafe
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = 1.5 subdir-objects
4 ACLOCAL_AMFLAGS = -I m4
6 if MAINTAINER_MODE
7 # Export these so that we run the locally installed autotools when building
8 # from a bootstrapped git tree.
9 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
10 endif
12 AM_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/include
14 # Order is relevant: when building, tests must be after ".".
15 SUBDIRS = . docs tests
17 AM_CXXFLAGS += $(XAPIAN_CXXFLAGS)
19 noinst_HEADERS =
20 BUILT_SOURCES =
21 noinst_LTLIBRARIES =
22 CLEANFILES =
23 DISTCLEANFILES =
24 MAINTAINERCLEANFILES =
25 bin_PROGRAMS =
26 EXTRA_PROGRAMS =
28 # This relies on GNU make (for the pattern rule) but it's just a convenience
29 # as you can run these check-* targets with any make using:
31 #   cd tests ; make check-FOO
33 # So the pain of maintaining a huge list of target forwarding rules here isn't
34 # worth it.
36 # Note: We use @PERCENT@ here instead of a literal % to suppress an automake
37 # portability warning.
38 check-@PERCENT@:
39         cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
41 EXTRA_DIST = ChangeLog include/xapian-letor/letor_error.h \
42  include/xapian-letor/letor_errordispatch.h generate-exceptions exception_data.pm
44 lib_LTLIBRARIES = libxapianletor.la
45 libxapianletor_la_SOURCES = $(lib_src)
46 libxapianletor_la_LDFLAGS = \
47         $(XAPIAN_LDFLAGS) $(NO_UNDEFINED) -version-info $(LIBRARY_VERSION_INFO)
49 libxapianletor_la_LIBADD = $(XAPIAN_LIBS) libcommon_str.la
51 lib_src =
53 if !MAINTAINER_NO_DOCS
54 dist_man_MANS =
55 endif
57 include api/Makefile.mk
58 include bin/Makefile.mk
59 include include/Makefile.mk
60 include feature/Makefile.mk
61 include ranker/Makefile.mk
62 include scorer/Makefile.mk
64 noinst_LTLIBRARIES += libcommon_str.la libgetopt.la
65 libcommon_str_la_SOURCES = common/str.cc
66 libgetopt_la_SOURCES = common/getopt.cc
68 xapianletorinclude_HEADERS += include/xapian-letor/letor_error.h
70 if MAINTAINER_MODE
71 BUILT_SOURCES += include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h
73 include/xapian-letor/letor_error.h include/xapian-letor/letor_errordispatch.h: generate-exceptions exception_data.pm
74         $(PERL) -w -I"$(srcdir)" "$(srcdir)/generate-exceptions"
75 endif
77 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
79 libxapianletor_la_LIBADD += $(LIBSVM_LIBS)
81 noinst_HEADERS +=\
82         common/gnu_getopt.h\
83         common/safeunistd.h\
84         common/str.h\
85         common/stringutils.h
87 DISTCHECK_CONFIGURE_FLAGS = "XAPIAN_CONFIG=$(XAPIAN_CONFIG)"