File: Makefile.am

package info (click to toggle)
findutils 4.2.28-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,460 kB
  • ctags: 2,635
  • sloc: ansic: 28,555; sh: 4,519; makefile: 616; exp: 419; sed: 16
file content (56 lines) | stat: -rw-r--r-- 3,130 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AUTOMAKE_OPTIONS=gnits
# readme-alpha

EXTRA_DIST = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in \
		THANKS config.rpath
SUBDIRS = gnulib lib find xargs locate doc po m4

ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4

# CONFIG_CLEAN_FILES = gnulib/lib/regex.c


# DISTCLEANFILES = intl/libintl.h

##
## regex.c seems to get left out if I use automake-1.9 but not 
## if I use automake-1.7.   Hence dist-hook has to be able to 
## copy regex.c into the relevant (read-only) directory if it 
## is not already there, but needs to avoid doing so if the 
## file is already in place.   Ugh.  
##                             -- James Youngman <jay@gnu.org>
## 
dist-hook: jy-regex-fix findutils-check-pofiles findutils-check-testfiles

jy-regex-fix:
	if test -f $(distdir)/gnulib/lib/regex.c ; then \
		echo regex.c is already in place.  Great. ; \
	else \
		echo Making $(distdir)/gnulib/lib writable ... ; \
		chmod +w $(distdir)/gnulib/lib ; \
		echo Copying $(srcdir)/gnulib/lib/regex.c to $(distdir)/gnulib/lib ; \
		cp $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib/regex.c ; \
	fi
#	ls -ld $(srcdir)/gnulib/lib/regex.c $(distdir)/gnulib/lib

## Check that we actually shipped all the .po files.  If this rule fails, 
## check ALL_LINGUAS in configure.in against the po files in the source
## directory (their names, not their contents)
findutils-check-pofiles:
	@echo ; echo Checking to see if we distributed the full set of .po files
	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 )
	@echo All .po files distributed OK.

## Check that we actually shipped all the test files that exist in the source.
## runtest will run all the .exp files it finds, and so if we don't ship all 
## of them, there will be some tests which people using the CVS code will be
## running, but people using the source distribution will not.
findutils-check-testfiles:
	@echo ; echo Checking to see if we distributed the full set of .exp files
	distcount=`ls $(distdir)/*/testsuite/*/*.exp | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.exp | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
	@echo ; echo Checking to see if we distributed the full set of .xo files
	distcount=`ls $(distdir)/*/testsuite/*/*.xo | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xo | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
	@echo ; echo Checking to see if we distributed the full set of .xe files
	distcount=`ls $(distdir)/*/testsuite/*/*.xe | wc -l` && srccount=`ls $(srcdir)/*/testsuite/*/*.xe | wc -l` && echo source $$srccount distributed $$distcount && test $$distcount -eq $$srccount
	@echo ; echo Checking to see if we distributed the full set of .xi files
	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