mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
* lib/Makefile.am (coverage-clean): Remove output files left behind by gcc -fprofile-arcs -ftest-coverage by using $(RM) with a glob pattern rather than a $(libfindtools_a_SOURCES.c=.gcno) Makefile substitution, because the latter caused us to delete header files entirely (their names do not end in .c). This had meant that it was impossible to compile findutils after "make clean". Bug report by David Gilbert. * find/Makefile.am (coverage-clean): Likewise. * xargs/Makefile.am (coverage-clean): Likewise. * locate/Makefile.am (coverage-clean): Likewise. * Makefile.am (coverage-clean): Likewise, but also do this in the subdirectories whose Makefile.am files are generated by gnulib-tool.
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
## Process this file with automake to produce Makefile.in.
|
|
|
|
AUTOMAKE_OPTIONS = 1.5 gnits
|
|
# no-dependencies
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
noinst_LIBRARIES = libfind.a
|
|
|
|
check_PROGRAMS = regexprops test_splitstring
|
|
check_SCRIPTS = check-regexprops
|
|
regexprops_SOURCES = regexprops.c regextype.c
|
|
|
|
TESTS =
|
|
if CROSS_COMPILING
|
|
# The regexprops program needs to be a native executable, so we
|
|
# can't build it with a cross-compiler.
|
|
else
|
|
TESTS += check-regexprops test_splitstring
|
|
endif
|
|
|
|
libfind_a_SOURCES = findutils-version.c
|
|
EXTRA_DIST = extendbuf.h buildcmd.h \
|
|
findutils-version.h \
|
|
fdleak.h unused-result.h check-regexprops.sh
|
|
SUFFIXES =
|
|
MOSTLYCLEANFILES =
|
|
DISTCLEANFILES =
|
|
MAINTAINERCLEANFILES =
|
|
|
|
|
|
AM_CPPFLAGS = -I../gl/lib -I$(top_srcdir)/gl/lib
|
|
LDADD = ../gl/lib/libgnulib.a $(LIBINTL)
|
|
|
|
libfind_a_SOURCES += printquoted.h listfile.h \
|
|
regextype.h dircallback.h safe-atoi.h splitstring.h
|
|
libfind_a_SOURCES += listfile.c extendbuf.c buildcmd.c \
|
|
forcefindlib.c qmark.c printquoted.c regextype.c dircallback.c fdleak.c \
|
|
safe-atoi.c splitstring.c
|
|
|
|
CLEANFILES = check-regexprops
|
|
|
|
# Clean coverage files generated by running binaries built with
|
|
# gcc -fprofile-arcs -ftest-coverage
|
|
coverage-clean:
|
|
$(RM) *.gcno *.gcda *.gcov *.lcov
|
|
|
|
clean-local: coverage-clean
|
|
|
|
EXTRA_DIST += waitpid.c forcefindlib.c
|
|
TESTS_ENVIRONMENT = REGEXPROPS=regexprops$(EXEEXT)
|
|
libfind_a_LIBADD = $(FINDLIBOBJS)
|
|
libfind_a_DEPENDENCIES = $(FINDLIBOBJS)
|
|
|
|
check-regexprops: check-regexprops.sh
|
|
cp $(srcdir)/check-regexprops.sh check-regexprops
|
|
chmod +x check-regexprops
|
|
|
|
test_splitstring_SOURCES = test_splitstring.c splitstring.c
|