add configure option to disable building the indexer, and avoid building the recoll lib if nothing needs it
This commit is contained in:
parent
d682348b7f
commit
4fe4a34949
@ -59,7 +59,10 @@ else
|
||||
endif
|
||||
|
||||
librcldir = $(libdir)/recoll
|
||||
librcl_LTLIBRARIES = librecoll.la
|
||||
librcl_LTLIBRARIES =
|
||||
if MAKE_RECOLL_LIB
|
||||
librcl_LTLIBRARIES += librecoll.la
|
||||
endif
|
||||
|
||||
librecoll_la_SOURCES = \
|
||||
aspell/rclaspell.cpp \
|
||||
@ -310,7 +313,10 @@ PicStatic: $(librecoll_la_OBJECTS)
|
||||
$(LIBTOOL) --tag=LD --mode=link gcc -g -O -o librecoll.la \
|
||||
$(librecoll_la_OBJECTS)
|
||||
|
||||
bin_PROGRAMS = recollindex
|
||||
bin_PROGRAMS =
|
||||
if MAKEINDEXER
|
||||
bin_PROGRAMS += recollindex
|
||||
endif
|
||||
if MAKECMDLINE
|
||||
bin_PROGRAMS += recollq
|
||||
endif
|
||||
@ -628,13 +634,13 @@ install-exec-local:: rclpychm-install
|
||||
clean-local:: rclpychm-clean
|
||||
rclpychm:
|
||||
(cd python/pychm; set -x; \
|
||||
for v in 2 3;do \
|
||||
for v in 3;do \
|
||||
test -n "`which python$${v}`" && python$${v} setup.py build;\
|
||||
done \
|
||||
)
|
||||
rclpychm-install:
|
||||
(cd python/pychm; set -x; \
|
||||
for v in 2 3;do test -n "`which python$${v}`" && \
|
||||
for v in 3;do test -n "`which python$${v}`" && \
|
||||
python$${v} setup.py install \
|
||||
--prefix=${prefix} --root=$${DESTDIR:-/} $(OPTSFORPYTHON); \
|
||||
done \
|
||||
@ -787,7 +793,7 @@ doc/user/usermanual.html: doc/user/usermanual.xml
|
||||
endif
|
||||
|
||||
dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 \
|
||||
doc/man/recollindex.1 doc/man/xadump.1
|
||||
doc/man/recollindex.1 doc/man/xadump.1 doc/man/rclgrep.1
|
||||
dist_man5_MANS = doc/man/recoll.conf.5
|
||||
|
||||
dist-hook:
|
||||
|
||||
@ -320,6 +320,11 @@ XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags`
|
||||
|
||||
PKG_CHECK_MODULES([XSLT], [libxslt], [], AC_MSG_ERROR([libxslt]))
|
||||
|
||||
AC_ARG_ENABLE(indexer,
|
||||
AS_HELP_STRING([--disable-indexer],[Disable building the recollindex indexer.]),
|
||||
enableINDEXER=$enableval, enableINDEXER="yes")
|
||||
AM_CONDITIONAL(MAKEINDEXER, [test X$enableINDEXER = Xyes])
|
||||
|
||||
AC_ARG_ENABLE(xadump,
|
||||
AS_HELP_STRING([--enable-xadump],[Enable building the xadump low level Xapian access program.]),
|
||||
enableXADUMP=$enableval, enableXADUMP="no")
|
||||
@ -511,6 +516,10 @@ fi
|
||||
#echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \
|
||||
# "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'"
|
||||
|
||||
|
||||
AM_CONDITIONAL([MAKE_RECOLL_LIB], [test X$buildtestmains = Xno -a X$pythonEnabled = Xno
|
||||
-a X$enableINDEXER = Xno -a X$enableXADUMP = Xno -a X$enableQT = Xno -a X$enableRECOLLQ = Xno])
|
||||
|
||||
# For communicating the value of RECOLL_DATADIR to non-make-based
|
||||
# subpackages like python-recoll, we have to expand prefix in here, because
|
||||
# things like "datadir = ${prefix}/share" (which is what we'd get by
|
||||
|
||||
12
src/doc/man/rclgrep.1
Normal file
12
src/doc/man/rclgrep.1
Normal file
@ -0,0 +1,12 @@
|
||||
.TH RCLGREP 1 "20 September 2022"
|
||||
.SH NAME
|
||||
rclgrep \- grep-like program based on the recoll data extraction functions
|
||||
.SH SYNOPSIS
|
||||
.B rclgrep
|
||||
[
|
||||
.B \--config
|
||||
<configdir>
|
||||
]
|
||||
|
||||
.SH DESCRIPTION
|
||||
Some bla bla
|
||||
Loading…
x
Reference in New Issue
Block a user