Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / Makefile.am
index c7f8f39..fa54bac 100644 (file)
@@ -9,14 +9,12 @@ DISTCLEANFILES = tool-versions.txt
 
 
 # "tests" is the gnulib unit test dir.
-SUBDIRS = gnulib tests build-aux lib find xargs locate doc po m4
+SUBDIRS = gl tests build-aux lib find xargs locate doc po m4
 
-ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4
+ACLOCAL_AMFLAGS = -I gl/m4 -I m4
 
 TESTFILE_SUFFIXES = .exp .xo .xe .xi
 
-# CONFIG_CLEAN_FILES = gnulib/lib/regex.c
-
 tool-versions.txt: Makefile
        ( automake --version ; echo ; \
        autoconf --version ; echo ; \
@@ -49,7 +47,9 @@ findutils-check-testfiles:
 
 findutils-check-smells:
        find  $(srcdir) \( -path $(srcdir)/autom4te.cache -o  \
-                           -path $(srcdir)/gnulib-git     -o  \
+                           -path $(srcdir)/gnulib     -o  \
+                           -path $(srcdir)/gl     -o  \
+                           -path $(srcdir)/tests     -o  \
                            -name .git             -o  \
                            \( -type d -name CVS \)  \
                        \) -prune -o                  \
@@ -57,3 +57,14 @@ findutils-check-smells:
        \! \( -name '*~' -o -name '*.xo' -o -name '*.xi' \) \
        -print0 | \
        xargs -0 python $(AUXDIR)/src-sniff.py
+
+# Clean coverage files generated by running binaries built with gcc
+# -fprofile-arcs -ftest-coverage.  We touch subdirectories here
+# because the relecvant Makefile.am files (which we would otherwise
+# edit to add an $(RM) command in their own coverage-clean rule) are
+# generated by gnulib-tool and therefore we cannot add the rule to
+# those files.
+coverage-clean:
+       for dir in . gl/lib gl/lib/glthread gl/lib/uniwidth tests tests/uniwidth; do $(RM) $${dir}/*.gcno $${dir}/*.gcda $${dir}/*.gcov $${dir}/*.lcov; done
+
+clean-local: coverage-clean