1 ## Process this file with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = gnits
10 info_TEXINFOS = automake.texi
12 # CONFIG_HEADER = config.h
14 pkgdata_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am \
15 compile.am data.am depend.am \
16 dist-vars.am footer.am header.am header-vars.am \
18 libraries.am library.am mans-vars.am \
19 program.am programs.am remake-hdr.am \
20 remake-subd.am remake.am scripts.am subdirs.am tags.am tags-subd.am \
22 texi-version.am texinfos-vars.am texinfos.am \
23 libraries-clean.am programs-clean.am data-clean.am \
24 COPYING INSTALL texinfo.tex \
25 ansi2knr.c ansi2knr.1 \
28 ## These must all be executable when installed.
29 pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh mkinstalldirs
33 # The following requires a fixed version of the Emacs 19.30 etags.
34 ETAGS_ARGS = automake.in --lang=none \
35 --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
37 ## `test -x' is not portable. So we use Perl instead. If Perl
38 ## doesn't exist, then this test is meaningless anyway.
39 # Check to make sure some installed files are executable.
41 $(PERL) -e "exit ! -x '$(pkgdatadir)/config.guess';"
42 $(PERL) -e "exit ! -x '$(pkgdatadir)/config.sub';"
43 $(PERL) -e "exit ! -x '$(pkgdatadir)/install-sh';"
44 $(PERL) -e "exit ! -x '$(pkgdatadir)/mdate-sh';"
45 $(PERL) -e "exit ! -x '$(pkgdatadir)/mkinstalldirs';"
48 # * syntax check with perl4 and perl5.
49 # * make sure the scripts don't use 'true'
50 # * expect no instances of '${...}'
51 # These are only really guaranteed to work on my machine.
52 maintainer-check: automake
53 ## Do syntax, etc, checks before make check.
54 $(PERL) -c -w automake
55 @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
56 echo "can't use 'true' in GNU Makefile" 1>&2; \
59 @if test `fgrep '$${' $(srcdir)/[a-z]*.am | wc -l` -ne 0; then \
60 echo "found too many uses of '\$${'" 1>&2; \
63 if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
64 perl4.036 -c -w automake; \
68 # Tag before making distribution. Also, don't make a distribution if
69 # checks fail. Also, make sure the NEWS file is up-to-date.
70 cvs-dist: maintainer-check
71 @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
72 echo "NEWS not updated; not releasing" 1>&2; \
75 cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
79 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
80 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
81 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
82 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
83 > $(PACKAGE)-$$prevno-$(VERSION).diff