source: trunk/essentials/sys-apps/findutils/Makefile.am@ 3232

Last change on this file since 3232 was 3170, checked in by bird, 18 years ago

findutils 4.3.2

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