info: allow user to inhibit pruning of '${infodir}/dir'
[platform/upstream/automake.git] / doc / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 ## Makefile for Automake.
4
5 # Copyright (C) 2003, 2006, 2008, 2009, 2012 Free Software Foundation,
6 # Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21 info_TEXINFOS = automake.texi
22 automake_TEXINFOS = fdl.texi
23
24 dist_man1_MANS = \
25   $(srcdir)/aclocal.1 \
26   $(srcdir)/automake.1 \
27   $(srcdir)/aclocal-$(APIVERSION).1 \
28   $(srcdir)/automake-$(APIVERSION).1
29 MAINTAINERCLEANFILES = $(dist_man1_MANS)
30 update_mans = \
31   PATH="`pwd`/../tests$(PATH_SEPARATOR)$$PATH" && \
32   export PATH && \
33   $(HELP2MAN) --output=$@
34 $(dist_man1_MANS): $(top_srcdir)/configure.ac
35 $(srcdir)/aclocal.1 $(srcdir)/automake.1:
36         f=`echo $@ | sed 's|.*/||; s|\.1$$||; $(transform)'`; \
37         echo ".so man1/$$f-$(APIVERSION).1" > $@
38 $(srcdir)/aclocal-$(APIVERSION).1: $(srcdir)/../aclocal.in
39         $(update_mans) aclocal-$(APIVERSION)
40 $(srcdir)/automake-$(APIVERSION).1: $(srcdir)/../automake.in
41         $(update_mans) automake-$(APIVERSION)
42
43 # The following requires a fixed version of the Emacs 19.30 etags.
44 ETAGS_ARGS = --lang=none \
45  --regex='/^@node[ \t]+\([^,]+\)/\1/' $(srcdir)/automake.texi
46 TAGS_DEPENDENCIES = automake.texi
47
48 amhello_sources = \
49   amhello/configure.ac \
50   amhello/Makefile.am \
51   amhello/README \
52   amhello/src/main.c \
53   amhello/src/Makefile.am
54
55 amhello_configury = \
56   aclocal.m4 \
57   autom4te.cache \
58   Makefile.in \
59   config.h.in \
60   configure \
61   depcomp \
62   install-sh \
63   missing \
64   src/Makefile.in
65
66 dist_noinst_DATA = $(amhello_sources)
67 dist_doc_DATA = $(srcdir)/amhello-1.0.tar.gz
68
69 # We depend on configure.ac so that we regenerate the tarball
70 # whenever the Automake version changes.
71 # aclocal-$(APIVERSION) and automake-$(APIVERSION) are generated by
72 # configure in tests/.
73 $(srcdir)/amhello-1.0.tar.gz: $(amhello_sources) $(top_srcdir)/configure.ac
74         $(AM_V_GEN)abs_top_builddir=`cd '$(top_builddir)' && pwd` && \
75         PATH="$$abs_top_builddir/tests$(PATH_SEPARATOR)$$PATH" && \
76         export PATH && \
77         cd $(srcdir)/amhello && \
78         ACLOCAL=aclocal-$(APIVERSION) && export ACLOCAL && \
79         AUTOMAKE=automake-$(APIVERSION) && export AUTOMAKE && \
80         AUTOCONF='$(am_AUTOCONF)' && export AUTOCONF && \
81         AUTOM4TE='$(am_AUTOM4TE)' && export AUTOM4TE && \
82         AUTORECONF='$(am_AUTORECONF)' && export AUTORECONF && \
83         AUTOHEADER='$(am_AUTOHEADER)' && export AUTOHEADER && \
84         AUTOUPDATE='$(am_AUTOUPDATE)' && export AUTOUPDATE && \
85         $(am_AUTORECONF) -vfi && \
86         ./configure && \
87         $(MAKE) $(AM_MAKEFLAGS) distcheck && \
88         $(MAKE) $(AM_MAKEFLAGS) distclean && \
89         rm -rf $(amhello_configury) && \
90         mv amhello-1.0.tar.gz ..