Nothing
[automake.git] / Makefile.am
blob2b8270c369bdc5135a34b308516a73b56f003590
1 ## Process this file with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = gnits
4 MAINT_CHARSET = latin1
5 PERL = @PERL@
7 SUBDIRS = tests
9 bin_SCRIPTS = automake
10 info_TEXINFOS = automake.texi
11 # SUBDIRS = intl po
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 \
17 kr-vars.am libraries-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 \
21 tags-clean.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 \
26 aclocal.m4
28 ## These must all be executable when installed.
29 pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh mkinstalldirs
31 CLEANFILES = automake
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.
40 installcheck-local:
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';"
47 # Some simple checks:
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 check
53         $(PERL) -c -w automake
54         @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
55           echo "can't use 'true' in GNU Makefile" 1>&2; \
56           exit 1;                               \
57         else :; fi
58         @if test `fgrep '$${' $(srcdir)/[a-z]*.am | wc -l` -ne 0; then \
59           echo "found too many uses of '\$${'" 1>&2; \
60           exit 1;                               \
61         fi
62         if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
63           perl4.036 -c -w automake; \
64         else :; fi
66 # Tag before making distribution.  Also, don't make a distribution if
67 # checks fail.  Also, make sure the NEWS file is up-to-date.
68 cvs-dist: maintainer-check
69         @if sed 1q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
70           echo "NEWS not updated; not releasing" 1>&2; \
71           exit 1;                               \
72         fi
73         cvs tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
74         $(MAKE) dist