Make the test suite fail if it cannot find the binary (as opposed to testing the...
[findutils.git] / locate / Makefile.am
blobaafae731e23aa76a0858e150fad4a151c0713999
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 = frcode code bigram
7 bin_PROGRAMS = locate 
8 libexec_PROGRAMS = frcode code bigram
9 bin_SCRIPTS = updatedb
10 man_MANS = locate.1 updatedb.1 locatedb.5
12 EXTRA_DIST = locatedb.h updatedb.sh $(man_MANS)
13 CLEANFILES = updatedb
15 INCLUDES = -I$(top_srcdir)/lib -I../gnulib/lib -I$(top_srcdir)/gnulib/lib -I../intl -DLOCATE_DB=\"$(LOCATE_DB)\" -DLOCALEDIR=\"$(localedir)\"
17 LDADD = ../find/version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@
19 $(PROGRAMS) $(LIBPROGRAMS): ../find/version.o ../lib/libfind.a ../gnulib/lib/libgnulib.a
21 updatedb: updatedb.sh
22         rm -f $@
23         find=`echo find|sed '$(transform)'`; \
24         frcode=`echo frcode|sed '$(transform)'`; \
25         bigram=`echo bigram|sed '$(transform)'`; \
26         code=`echo code|sed '$(transform)'`; \
27         sed \
28         -e "s,@""bindir""@,$(bindir)," \
29         -e "s,@""libexecdir""@,$(libexecdir)," \
30         -e "s,@""LOCATE_DB""@,$(LOCATE_DB)," \
31         -e "s,@""VERSION""@,@VERSION@," \
32         -e "s,@""find""@,$${find}," \
33         -e "s,@""frcode""@,$${frcode}," \
34         -e "s,@""bigram""@,$${bigram}," \
35         -e "s,@""code""@,$${code}," \
36         -e "s,@""SORT""@,$(SORT)," \
37         -e "s,@""SORT_SUPPORTS_Z""@,$(SORT_SUPPORTS_Z)," \
38         $(srcdir)/updatedb.sh > $@
39         chmod +x $@
41 install-data-hook:
42         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localstatedir)
44 SUBDIRS = testsuite