4 EXTRA_DIST = COPYING ChangeLog TODO config.h.in stamp-h.in \
5 THANKS import-gnulib.sh import-gnulib.config
6 # "tests" is the gnulib unit test dir.
7 SUBDIRS = gnulib tests build-aux lib find xargs locate doc po m4
9 ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4
11 TESTFILE_SUFFIXES = .exp .xo .xe .xi
13 # CONFIG_CLEAN_FILES = gnulib/lib/regex.c
16 # DISTCLEANFILES = intl/libintl.h
19 ## regex.c seems to get left out if I use automake-1.9 but not
20 ## if I use automake-1.7. Hence dist-hook has to be able to
21 ## copy regex.c into the relevant (read-only) directory if it
22 ## is not already there, but needs to avoid doing so if the
23 ## file is already in place. Ugh.
24 ## -- James Youngman <jay@gnu.org>
26 dist-hook: jy-regex-fix findutils-check-pofiles findutils-check-testfiles
29 if test -f $(distdir)/gnulib/lib/regex.c ; then \
30 echo regex.c is already in place. Great. ; \
32 echo Making $(distdir)/gnulib/lib writable ... ; \
33 chmod +w $(distdir)/gnulib/lib ; \
34 echo Copying $(srcdir)/gnulib/lib/regex.c to $(distdir)/gnulib/lib ; \
35 cp $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib/regex.c ; \
37 # ls -ld $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib
39 ## Check that we actually shipped all the .po files. If this rule fails,
40 ## check ALL_LINGUAS in configure.in against the po files in the source
41 ## directory (their names, not their contents)
42 findutils-check-pofiles:
43 @echo ; echo Checking to see if we distributed the full set of .po files
44 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 )
45 @echo All .po files distributed OK.
47 ## Check that we actually shipped all the test files that exist in the source.
48 ## runtest will run all the .exp files it finds, and so if we don't ship all
49 ## of them, there will be some tests which people using the CVS code will be
50 ## running, but people using the source distribution will not.
51 findutils-check-testfiles:
53 $(AUXDIR)/check-testfiles.sh "$(distdir)" "$(srcdir)" $(TESTFILE_SUFFIXES)