1 ## Process this file with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = gnits 1.4
6 ## We need `.' in SUBDIRS because we want `check' to build `.' before
10 bin_SCRIPTS = automake aclocal
11 info_TEXINFOS = automake.texi
13 amfiles = clean-hdr.am clean-kr.am clean.am comp-vars.am compile.am \
14 data-clean.am data.am dejagnu.am depend.am depend2.am dist.am \
15 dist-vars.am footer.am header-vars.am header.am java-clean.am java.am \
16 kr-extra.am library.am libs-clean.am libs.am libtool.am lisp-clean.am \
17 lisp.am ltlib-clean.am ltlib.am ltlibrary.am mans-vars.am mans.am \
18 multilib.am program.am progs-clean.am progs.am remake-hdr.am remake.am \
19 scripts.am subdirs.am tags-clean.am tags.am texi-vers.am texinfos.am
21 dist_pkgdata_DATA = COPYING INSTALL texinfo.tex ansi2knr.c ansi2knr.1 \
24 ## These must all be executable when installed. However, if we use
25 ## _SCRIPTS, then the program transform will be applied, which is not
26 ## what we want. So we make them executable by hand.
27 scriptdir = $(pkgdatadir)
28 dist_script_DATA = config.guess config.sub install-sh mdate-sh missing \
29 mkinstalldirs elisp-comp ylwrap acinstall compile
33 @for prog in $(dist_script_DATA); do \
34 echo " chmod +x $(DESTDIR)$(scriptdir)/$$prog"; \
35 chmod +x $(DESTDIR)$(scriptdir)/$$prog; \
38 TAGS_FILES = automake.in aclocal.in $(amfiles)
40 # The following requires a fixed version of the Emacs 19.30 etags.
41 ETAGS_ARGS = --lang=none \
42 --regex='/^@node[ \t]+\([^,]+\)/\1/' $(srcdir)/automake.texi
43 TAGS_DEPENDENCIES = automake.texi
45 ## `test -x' is not portable. So we use Perl instead. If Perl
46 ## doesn't exist, then this test is meaningless anyway.
48 for file in $(dist_script_DATA); do \
49 $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
52 EXTRA_DIST = ChangeLog.1996 ChangeLog.1998
54 ################################################################
56 ## Everything past here is useful to the maintainer, but probably not
60 # Run the test suite using Perl 4.
61 perl4-check: automake aclocal
62 @if $(SHELL) -c 'perl4.036 -v' > /dev/null 2>&1; then \
63 $(MAKE) PERL=perl4.036 check; \
66 # Some simple checks, and then ordinary check. These are only really
67 # guaranteed to work on my machine.
68 maintainer-check: automake aclocal
69 ## This check avoids accidental configure substitutions in the source.
70 ## There are exactly 7 lines that should be modified. This works out
71 ## to 22 lines of diffs.
72 @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
73 echo "found too many diffs between automake.in and automake"; 1>&2; \
74 diff -c $(srcdir)/automake.in automake; \
77 ## Syntax check with default Perl (on my machine, Perl 5).
78 $(PERL) -c -w automake
80 ## expect no instances of '${...}'. However, $${...} is ok, since that
81 ## is a shell construct, not a Makefile construct.
82 ## The backslash in `$${' is needed for some versions of bash.
83 @if test `fgrep '\$${' $(srcdir)/[a-z]*.am | fgrep -v '$$$$' | wc -l` -ne 0; then \
84 echo "found too many uses of '\$${'" 1>&2; \
87 ## Make sure all invocations of mkinstalldirs are correct.
88 @if test `fgrep 'mkinstalldirs' $(srcdir)/[a-z]*.am | fgrep -v '$$(mkinstalldirs)' | wc -l` -ne 0; then \
89 echo "found incorrect use of mkinstalldirs" 1>&2; \
92 ## Another syntax check, this time with Perl 4, if it exists.
93 @if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
94 perl4.036 -c -w automake; \
95 perl4.036 -c -w aclocal; \
97 ## We never want to use "undef", only "delete".
98 @if grep undef $(srcdir)/automake.in > /dev/null 2>&1; then \
99 echo "Found undef in automake.in; use delete instead" 1>&2; \
102 ## We never want split (/ /,...), only split (' ', ...).
103 @if fgrep 'split (/ /' $(srcdir)/automake.in > /dev/null 2>&1; then \
104 echo "Found bad split in automake.in" 1>&2; \
108 # Tag before making distribution. Also, don't make a distribution if
109 # checks fail. Also, make sure the NEWS file is up-to-date.
110 cvs-dist: maintainer-check perl4-check distcheck
111 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
112 echo "NEWS not updated; not releasing" 1>&2; \
115 cd $(srcdir) && cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
119 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
120 if test -z "$$OLDVERSION"; then \
121 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
122 else prevno="$$OLDVERSION"; fi; \
123 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
124 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
125 > $(PACKAGE)-$$prevno-$(VERSION).diff
127 ## Check our path lengths.
130 ## FIXME there's got to be a better way! pathchk should take the list
131 ## of files on stdin, at least.
132 find . -print | xargs pathchk -p); \