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 compile-kr.am comp-vars.am \
12 compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am footer.am \
13 header.am header-vars.am kr-extra.am libs.am library.am libtool.am ltlibs.am \
14 mans-vars.am program.am progs.am remake-hdr.am remake-subd.am \
15 remake.am scripts.am subdirs.am tags.am tags-clean.am \
16 texi-vers.am texinfos.am libs-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 mdate-sh \
22 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 # Some simple checks, and then ordinary check. These are only really
46 # guaranteed to work on my machine.
47 maintainer-check: automake aclocal
48 ## Syntax check with default Perl (on my machine, Perl 5).
49 $(PERL) -c -w automake
51 ## Ensure `true' is never used; I've accidentally used it before.
52 @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
53 echo "can't use 'true' in GNU Makefile" 1>&2; \
56 ## expect no instances of '${...}'. However, $${...} is ok, since that
57 ## is a shell construct, not a Makefile construct.
58 @if test `fgrep '$${' $(srcdir)/[a-z]*.am | fgrep -v '$$$$' | wc -l` -ne 0; then \
59 echo "found too many uses of '\$${'" 1>&2; \
62 ## Make sure all invocations of mkinstalldirs are correct.
63 @if test `fgrep 'mkinstalldirs' $(srcdir)/[a-z]*.am | fgrep -v '$$(mkinstalldirs)' | wc -l` -ne 0; then \
64 echo "found incorrect use of mkinstalldirs" 1>&2; \
67 ## Another syntax check, this time with Perl 4, if it exists.
68 @if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
69 perl4.036 -c -w automake; \
70 perl4.036 -c -w aclocal; \
73 # Tag before making distribution. Also, don't make a distribution if
74 # checks fail. Also, make sure the NEWS file is up-to-date.
75 cvs-dist: maintainer-check distcheck
76 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
77 echo "NEWS not updated; not releasing" 1>&2; \
80 cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
84 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
85 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
86 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
87 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
88 > $(PACKAGE)-$$prevno-$(VERSION).diff
90 ## Check our path lengths.
93 ## FIXME there's got to be a better way! pathchk should take the list
94 ## of files on stdin, at least.
95 find . -print | xargs pathchk -p); \