e085355a2280c089005d7d29c08005e4466a8001
[platform/upstream/automake.git] / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 AUTOMAKE_OPTIONS = gnits
4 MAINT_CHARSET = latin1
5
6 SUBDIRS = tests
7
8 bin_SCRIPTS = automake
9 info_TEXINFOS = automake.texi
10 # SUBDIRS = intl po
11 # CONFIG_HEADER = config.h
12
13 pkgdata_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am \
14 compile.am data.am depend.am \
15 dist-vars.am footer.am header.am header-vars.am \
16 kr-vars.am libraries-vars.am \
17 libraries.am library.am mans-vars.am \
18 program.am programs.am remake-hdr.am \
19 remake-subd.am remake.am scripts.am subdirs.am tags.am tags-subd.am \
20 tags-clean.am \
21 texi-version.am texinfos-vars.am texinfos.am \
22 libraries-clean.am programs-clean.am data-clean.am \
23 COPYING INSTALL texinfo.tex \
24 ansi2knr.c ansi2knr.1 \
25 aclocal.m4
26
27 ## These must all be executable when installed.
28 pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh mkinstalldirs
29
30 CLEANFILES = automake
31
32 # Gross.
33 DIST_SUBDIRS = samples/cpio/*Makefile.am
34
35 # The following requires a fixed version of the Emacs 19.30 etags.
36 ETAGS_ARGS = automake.in --lang=none \
37  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
38
39 # Check to make sure some installed files are executable.
40 installcheck-local:
41         test -x $(pkgdatadir)/config.guess
42         test -x $(pkgdatadir)/config.sub
43         test -x $(pkgdatadir)/install-sh
44         test -x $(pkgdatadir)/mdate-sh
45         test -x $(pkgdatadir)/mkinstalldirs
46
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
65
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