c78298a3a57f3a8cbef611432ca31b00325e4612
[platform/upstream/automake.git] / Makefile.am
1 bin_SCRIPTS = automake
2 TEXINFOS = automake.texi
3 # SUBDIRS = intl po
4 # CONFIG_HEADER = config.h
5
6 pkgdata_DATA = clean-kr.am clean.am compile-kr.am compile-vars.am \
7 compile.am data.am depend.am dist-subd-top.am \
8 dist-subd.am dist-vars.am dist.am footer.am header-vars.am \
9 kr-vars.am libraries-vars.am \
10 libraries.am library.am mans-vars.am \
11 program.am programs.am remake-hdr.am \
12 remake-subd.am remake.am scripts.am subdirs.am tags.am tags-subd.am \
13 tags-clean.am \
14 texi-clean.am texi-version.am texinfos-vars.am texinfos.am \
15 libraries-clean.am scripts-clean.am programs-clean.am data-clean.am \
16 COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex
17
18 DIST_OTHER = automake.in
19
20 # Gross.
21 DIST_SUBDIRS = samples/cpio/*Makefile.am
22
23 # The following requires a fixed version of the Emacs 19.30 etags.
24 ETAGS_ARGS = automake.in --lang=none \
25  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
26
27 # Some simple checks:
28 # * syntax check with perl4 and perl5.
29 # * make sure the scripts don't use 'true'
30 # * expect exactly two instance of '${...}'
31 # These are only really guaranteed to work on my machine.
32 maintainer-check: automake
33         @PERL@ -c -w automake
34         @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
35           echo "can't use 'true' in GNU Makefile" 1>&2; \
36           exit 1;                               \
37         else :; fi
38         @if test `fgrep '$${' $(srcdir)/[a-z]*.am | wc -l` -ne 2; then \
39           echo "found too many uses of '\$${'" 1>&2; \
40           exit 1;                               \
41         fi
42         if test -f /usr/local/bin/perl4.036; then \
43           /usr/local/bin/perl4.036 -c -w automake; \
44         else :; fi
45
46 automake: automake.in
47         CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
48
49 # Tag before making distribution.  Also, don't make a distribution if
50 # checks fail.  Also, make sure the NEWS file is up-to-date.
51 cvs-dist: maintainer-check
52         @if sed 1q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
53           echo "NEWS not updated; not releasing" 1>&2; \
54           exit 1;                               \
55         fi
56         cvs tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
57         $(MAKE) dist