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 \
12 comp-vars.am compile.am data.am dejagnu.am depend.am depend2.am \
13 dist-vars.am footer.am header.am header-vars.am kr-extra.am libs.am \
14 library.am libtool.am ltlib.am ltlibrary.am mans-vars.am program.am \
15 progs.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
16 tags-clean.am texi-vers.am texinfos.am libs-clean.am ltlib-clean.am \
17 progs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
18 ansi2knr.1 lisp.am lisp-clean.am
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 ## This check avoids accidental configure substitutions in the source.
55 ## There are exactly 8 lines that should be modified. This works out
56 ## to 24 lines of diffs.
57 @if test `diff automake.in automake | wc -l` -ne 24; then \
58 echo "found too many diffs between automake.in and automake"; 1>&2; \
59 diff -c automake.in automake; \
62 ## Syntax check with default Perl (on my machine, Perl 5).
63 $(PERL) -c -w automake
65 ## expect no instances of '${...}'. However, $${...} is ok, since that
66 ## is a shell construct, not a Makefile construct.
67 @if test `fgrep '$${' $(srcdir)/[a-z]*.am | fgrep -v '$$$$' | wc -l` -ne 0; then \
68 echo "found too many uses of '\$${'" 1>&2; \
71 ## Make sure all invocations of mkinstalldirs are correct.
72 @if test `fgrep 'mkinstalldirs' $(srcdir)/[a-z]*.am | fgrep -v '$$(mkinstalldirs)' | wc -l` -ne 0; then \
73 echo "found incorrect use of mkinstalldirs" 1>&2; \
76 ## Another syntax check, this time with Perl 4, if it exists.
77 @if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
78 perl4.036 -c -w automake; \
79 perl4.036 -c -w aclocal; \
81 ## We never want to use "undef", only "delete".
82 @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
83 echo "Found undef in automake.in; use delete instead" 1>&2; \
87 # Tag before making distribution. Also, don't make a distribution if
88 # checks fail. Also, make sure the NEWS file is up-to-date.
89 cvs-dist: maintainer-check perl4-check distcheck
90 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
91 echo "NEWS not updated; not releasing" 1>&2; \
94 cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
98 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
99 if test -z "$$OLDVERSION"; then \
100 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
101 else prevno="$$OLDVERSION"; fi; \
102 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
103 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
104 > $(PACKAGE)-$$prevno-$(VERSION).diff
106 ## Check our path lengths.
109 ## FIXME there's got to be a better way! pathchk should take the list
110 ## of files on stdin, at least.
111 find . -print | xargs pathchk -p); \