1 ## Process this file with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = gnits
8 bin_SCRIPTS = automake aclocal
9 info_TEXINFOS = automake.texi
11 pkgdata_DATA = clean-kr.am clean.am clean-hdr.am compile-kr.am comp-vars.am \
12 compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am \
13 footer.am header.am header-vars.am kr-extra.am libs.am library.am \
14 libtool.am ltlib.am ltlibrary.am mans-vars.am program.am progs.am \
15 remake-hdr.am remake.am scripts.am subdirs.am tags.am tags-clean.am \
16 texi-vers.am texinfos.am libs-clean.am ltlib-clean.am progs-clean.am \
17 data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c ansi2knr.1 \
20 ## These must all be executable when installed.
21 pkgdata_SCRIPTS = config.guess config.sub install-sh interlock \
22 mdate-sh missing mkinstalldirs elisp-comp ylwrap acinstall
24 EXTRA_DIST = acinstall $(pkgdata_DATA)
26 # The following requires a fixed version of the Emacs 19.30 etags.
27 ETAGS_ARGS = automake.in aclocal.in --lang=none \
28 --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
29 TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
31 ## `test -x' is not portable. So we use Perl instead. If Perl
32 ## doesn't exist, then this test is meaningless anyway.
33 # Check to make sure some installed files are executable.
35 for file in $(pkgdata_SCRIPTS); do \
36 $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
39 ################################################################
41 ## Everything past here is useful to the maintainer, but probably not
45 # Run the test suite using Perl 4.
46 perl4-check: automake aclocal
47 @if $(SHELL) -c 'perl4.036 -v' > /dev/null 2>&1; then \
48 $(MAKE) PERL=perl4.036 check; \
51 # Some simple checks, and then ordinary check. These are only really
52 # guaranteed to work on my machine.
53 maintainer-check: automake aclocal
54 ## Syntax check with default Perl (on my machine, Perl 5).
55 $(PERL) -c -w automake
57 ## expect no instances of '${...}'. However, $${...} is ok, since that
58 ## is a shell construct, not a Makefile construct.
59 @if test `fgrep '$${' $(srcdir)/[a-z]*.am | fgrep -v '$$$$' | wc -l` -ne 0; then \
60 echo "found too many uses of '\$${'" 1>&2; \
63 ## Make sure all invocations of mkinstalldirs are correct.
64 @if test `fgrep 'mkinstalldirs' $(srcdir)/[a-z]*.am | fgrep -v '$$(mkinstalldirs)' | wc -l` -ne 0; then \
65 echo "found incorrect use of mkinstalldirs" 1>&2; \
68 ## Another syntax check, this time with Perl 4, if it exists.
69 @if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
70 perl4.036 -c -w automake; \
71 perl4.036 -c -w aclocal; \
73 ## We never want to use "undef", only "delete".
74 @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
75 echo "Found undef in automake.in; use delete instead" 1>&2; \
79 # Tag before making distribution. Also, don't make a distribution if
80 # checks fail. Also, make sure the NEWS file is up-to-date.
81 cvs-dist: maintainer-check perl4-check distcheck
82 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
83 echo "NEWS not updated; not releasing" 1>&2; \
86 cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
90 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
91 if test -z "$$OLDVERSION"; then \
92 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
93 else prevno="$$OLDVERSION"; fi; \
94 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
95 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
96 > $(PACKAGE)-$$prevno-$(VERSION).diff
98 ## Check our path lengths.
101 ## FIXME there's got to be a better way! pathchk should take the list
102 ## of files on stdin, at least.
103 find . -print | xargs pathchk -p); \