1 # The default database to build and search.
2 AUTOMAKE_OPTIONS = std-options
3 LOCATE_DB = $(localstatedir)/locatedb
4 localedir = $(datadir)/locale
6 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = \
11 libexec_PROGRAMS = frcode code bigram
12 bin_SCRIPTS = updatedb
13 man_MANS = locate.1 updatedb.1 locatedb.5
14 BUILT_SOURCES = dblocation.texi
15 EXTRA_DIST = locatedb.h updatedb.sh $(man_MANS)
16 CLEANFILES = updatedb dblocation.texi
17 locate_SOURCES = locate.c word_io.c
18 code_SOURCES = code.c word_io.c
20 INCLUDES = -I$(top_srcdir)/lib -I../gnulib/lib -I$(top_srcdir)/gnulib/lib -I../intl -DLOCATE_DB=\"$(LOCATE_DB)\" -DLOCALEDIR=\"$(localedir)\"
22 LDADD = ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@
24 $(PROGRAMS) $(LIBPROGRAMS): ../lib/libfind.a ../gnulib/lib/libgnulib.a
28 find=`echo find|sed '$(transform)'`; \
29 frcode=`echo frcode|sed '$(transform)'`; \
30 bigram=`echo bigram|sed '$(transform)'`; \
31 code=`echo code|sed '$(transform)'`; \
33 -e "s,@""bindir""@,$(bindir)," \
34 -e "s,@""libexecdir""@,$(libexecdir)," \
35 -e "s,@""LOCATE_DB""@,$(LOCATE_DB)," \
36 -e "s,@""VERSION""@,@VERSION@," \
37 -e "s,@""PACKAGE_NAME""@,@PACKAGE_NAME@," \
38 -e "s,@""find""@,$${find}," \
39 -e "s,@""frcode""@,$${frcode}," \
40 -e "s,@""bigram""@,$${bigram}," \
41 -e "s,@""code""@,$${code}," \
42 -e "s,@""SORT""@,$(SORT)," \
43 -e "s,@""SORT_SUPPORTS_Z""@,$(SORT_SUPPORTS_Z)," \
44 $(srcdir)/updatedb.sh > $@
48 $(top_srcdir)/build-aux/mkinstalldirs $(DESTDIR)$(localstatedir)
50 dblocation.texi: Makefile
51 echo '@set LOCATE_DB $(LOCATE_DB)' > $@
55 dist-hook: findutils-check-manpages
57 findutils-check-manpages:
58 $(top_srcdir)/build-aux/man-lint.sh $(srcdir) $(man_MANS)