3 AM_CFLAGS = $(WARN_CFLAGS)
5 EXTRA_DIST = COPYING ChangeLog TODO config.h.in stamp-h.in \
6 THANKS import-gnulib.sh import-gnulib.config \
7 tool-versions.txt README-hacking
8 DISTCLEANFILES = tool-versions.txt
11 # "tests" is the gnulib unit test dir.
12 SUBDIRS = gl tests build-aux lib find xargs locate doc po m4
14 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
16 TESTFILE_SUFFIXES = .exp .xo .xe .xi
18 tool-versions.txt: Makefile
19 ( automake --version ; echo ; \
20 autoconf --version ; echo ; \
21 $(CC) --version ; echo ; \
22 m4 --version ; echo ; \
23 gettext --version ; echo ; \
24 runtest --version ; echo ; \
25 makeinfo --version ) > $@
28 dist-hook: findutils-check-pofiles findutils-check-testfiles
31 ## Check that we actually shipped all the .po files. If this rule fails,
32 ## check ALL_LINGUAS in configure.in against the po files in the source
33 ## directory (their names, not their contents)
34 findutils-check-pofiles:
35 @echo ; echo Checking to see if we distributed the full set of .po files
36 distcount=`ls $(distdir)/po/*.po | wc -l` ; srccount=`ls $(srcdir)/po/*.po | wc -l` ; test $$distcount -eq $$srccount || ( echo FAILED: Please check the value of ALL_LINGUAS in configure.in against the actual set of ".po" files >&2 ; false )
37 @echo All .po files distributed OK.
39 ## Check that we actually shipped all the test files that exist in the source.
40 ## runtest will run all the .exp files it finds, and so if we don't ship all
41 ## of them, there will be some tests which people using the CVS code will be
42 ## running, but people using the source distribution will not.
43 findutils-check-testfiles:
45 $(AUXDIR)/check-testfiles.sh "$(distdir)" "$(srcdir)" $(TESTFILE_SUFFIXES)
48 findutils-check-smells:
49 find $(srcdir) \( -path $(srcdir)/autom4te.cache -o \
50 -path $(srcdir)/gnulib -o \
51 -path $(srcdir)/gl -o \
52 -path $(srcdir)/tests -o \
54 \( -type d -name CVS \) \
56 \( -type f -o -type l \) \
57 \! \( -name '*~' -o -name '*.xo' -o -name '*.xi' \) \
59 xargs -0 python $(AUXDIR)/src-sniff.py
61 # Clean coverage files generated by running binaries built with gcc
62 # -fprofile-arcs -ftest-coverage. We touch subdirectories here
63 # because the relecvant Makefile.am files (which we would otherwise
64 # edit to add an $(RM) command in their own coverage-clean rule) are
65 # generated by gnulib-tool and therefore we cannot add the rule to
68 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
70 clean-local: coverage-clean