summaryrefslogtreecommitdiff
path: root/find/Makefile.am
blob: 67fd682a51ed914fbd81b75553668722eac050c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
AUTOMAKE_OPTIONS = std-options
AM_CFLAGS = $(WARN_CFLAGS)
localedir = $(datadir)/locale
# noinst_PROGRAMS = regexprops
# regexprops_SOURCES = regexprops.c

noinst_LIBRARIES = libfindtools.a
libfindtools_a_SOURCES = finddata.c fstype.c parser.c pred.c exec.c tree.c util.c sharefile.c print.c


# We always build two versions of find, one with fts, one without.
# Their names depend on whether the user specified --with-fts.
#
# --with-fts            find            extra binary
#       yes             with fts        'oldfind', without fts
#        no             without fts     'ftsfind', with fts
#
if WITH_FTS
bin_PROGRAMS     = find oldfind
find_SOURCES     = ftsfind.c
oldfind_SOURCES  = find.c
man_MANS         = find.1 oldfind.1
else
bin_PROGRAMS      = find ftsfind
find_SOURCES      = find.c
ftsfind_SOURCES   = ftsfind.c
man_MANS          = find.1 ftsfind.1
endif

# We don't just include man_MANS in EXTRA_DIST because while the value of
# man_MANS is not always the same, we want to distribute all of those files.
EXTRA_DIST = defs.h sharefile.h print.h find.1 ftsfind.1 oldfind.1
INCLUDES = -I../gl/lib -I$(top_srcdir)/lib -I$(top_srcdir)/gl/lib -I../intl -DLOCALEDIR=\"$(localedir)\"
LDADD = ./libfindtools.a ../lib/libfind.a ../gl/lib/libgnulib.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_SELINUX) $(LIB_CLOSE) $(MODF_LIBM) $(FINDLIBS)
SUBDIRS = . testsuite

#$(PROGRAMS): ../lib/libfind.a

dist-hook: findutils-check-manpages

findutils-check-manpages:
	$(top_srcdir)/build-aux/man-lint.sh $(srcdir) $(man_MANS)