1 AUTOMAKE_OPTIONS=gnits readme-alpha
3 EXTRA_DIST = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in \
5 SUBDIRS = gnulib lib find xargs locate doc po m4
7 ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4
9 # CONFIG_CLEAN_FILES = gnulib/lib/regex.c
12 # DISTCLEANFILES = intl/libintl.h
15 ## regex.c seems to get left out if I use automake-1.9 but not
16 ## if I use automake-1.7. Hence dist-hook has to be able to
17 ## copy regex.c into the relevant (read-only) directory if it
18 ## is not already there, but needs to avoid doing so if the
19 ## file is already in place. Ugh.
20 ## -- James Youngman <jay@gnu.org>
22 dist-hook: jy-regex-fix findutils-check-pofiles findutils-check-testfiles
25 if test -f $(distdir)/gnulib/lib/regex.c ; then \
26 echo regex.c is already in place. Great. ; \
28 echo Making $(distdir)/gnulib/lib writable ... ; \
29 chmod +w $(distdir)/gnulib/lib ; \
30 echo Copying $(srcdir)/gnulib/lib/regex.c to $(distdir)/gnulib/lib ; \
31 cp $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib/regex.c ; \
33 # ls -ld $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib
35 ## Check that we actually shipped all the .po files. If this rule fails,
36 ## check ALL_LINGUAS in configure.in against the po files in the source
37 ## directory (their names, not their contents)
38 findutils-check-pofiles:
39 @echo ; echo Checking to see if we distributed the full set of .po files
40 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 )
41 @echo All .po files distributed OK.
43 ## Check that we actually shipped all the test files that exist in the source.
44 ## runtest will run all the .exp files it finds, and so if we don't ship all
45 ## of them, there will be some tests which people using the CVS code will be
46 ## running, but people using the source distribution will not.
47 findutils-check-testfiles:
48 @echo ; echo Checking to see if we distributed the full set of .exp files
49 distcount=`ls $(distdir)/*/testsuite/*/*.exp | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.exp | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
50 @echo ; echo Checking to see if we distributed the full set of .xo files
51 distcount=`ls $(distdir)/*/testsuite/*/*.xo | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xo | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
52 @echo ; echo Checking to see if we distributed the full set of .xe files
53 distcount=`ls $(distdir)/*/testsuite/*/*.xe | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xe | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
54 @echo ; echo Checking to see if we distributed the full set of .xi files
55 distcount=`ls $(distdir)/*/testsuite/inputs/*.xi | wc -l` && srccount=`ls $(srcdir)/*/testsuite/inputs/*.xi | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount