Beginnings of new libtool support
[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 PERL = @PERL@
6
7 SUBDIRS = tests m4
8
9 bin_SCRIPTS = automake aclocal
10 info_TEXINFOS = automake.texi
11
12 pkgdata_DATA = clean-kr.am clean.am compile-kr.am comp-vars.am \
13 compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am footer.am \
14 header.am header-vars.am kr-extra.am libs.am library.am \
15 mans-vars.am program.am progs.am remake-hdr.am remake-subd.am \
16 remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
17 texi-vers.am texinfos.am libs-clean.am \
18 progs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
19 ansi2knr.1 lisp.am lisp-clean.am
20
21 ## These must all be executable when installed.
22 pkgdata_SCRIPTS = config.guess config.sub install-sh interlock mdate-sh \
23 mkinstalldirs elisp-comp ylwrap acinstall
24
25 EXTRA_DIST = acinstall $(pkgdata_DATA)
26
27 # The following requires a fixed version of the Emacs 19.30 etags.
28 ETAGS_ARGS = automake.in aclocal.in --lang=none \
29  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
30 TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
31
32 ## `test -x' is not portable.  So we use Perl instead.  If Perl
33 ## doesn't exist, then this test is meaningless anyway.
34 # Check to make sure some installed files are executable.
35 installcheck-local:
36         for file in $(pkgdata_SCRIPTS); do \
37           $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
38         done
39
40 ################################################################
41 ##
42 ## Everything past here is useful to the maintainer, but probably not
43 ## to anybody else
44 ##
45
46 # Some simple checks, and then ordinary check.  These are only really
47 # guaranteed to work on my machine.
48 maintainer-check: automake aclocal
49 ## Syntax check with default Perl (on my machine, Perl 5).
50         $(PERL) -c -w automake
51         $(PERL) -c -w aclocal
52 ## Ensure `true' is never used; I've accidentally used it before.
53         @if grep '^[^#].*true' $(srcdir)/[a-z]*.am; then \
54           echo "can't use 'true' in GNU Makefile" 1>&2; \
55           exit 1;                               \
56         else :; fi
57 ## expect no instances of '${...}'.  However, $${...} is ok, since that
58 ## is a shell construct, not a Makefile construct.
59         @if test `fgrep '$${' $(srcdir)/[a-z]*.am | fgrep -v '$$$$' | wc -l` -ne 0; then \
60           echo "found too many uses of '\$${'" 1>&2; \
61           exit 1;                               \
62         else :; fi
63 ## Make sure all invocations of mkinstalldirs are correct.
64         @if test `fgrep 'mkinstalldirs' $(srcdir)/[a-z]*.am | fgrep -v '$$(mkinstalldirs)' | wc -l` -ne 0; then \
65           echo "found incorrect use of mkinstalldirs" 1>&2; \
66           exit 1; \
67         else :; fi
68 ## Another syntax check, this time with Perl 4, if it exists.
69         @if $(SHELL) -c 'perl4.036 -v' >/dev/null 2>&1; then \
70           perl4.036 -c -w automake; \
71           perl4.036 -c -w aclocal; \
72         else :; fi
73
74 # Tag before making distribution.  Also, don't make a distribution if
75 # checks fail.  Also, make sure the NEWS file is up-to-date.
76 cvs-dist: maintainer-check distcheck
77         @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
78           echo "NEWS not updated; not releasing" 1>&2; \
79           exit 1;                               \
80         fi
81         cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
82         $(MAKE) dist
83
84 cvs-diff:
85         thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
86         prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
87         prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
88         cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
89             > $(PACKAGE)-$$prevno-$(VERSION).diff
90
91 ## Check our path lengths.
92 path-check: distdir
93         (cd $(distdir) && \
94 ## FIXME there's got to be a better way!  pathchk should take the list
95 ## of files on stdin, at least.
96           find . -print | xargs pathchk -p); \
97           status=$$?; \
98           rm -rf $(distdir); \
99           exit $$status