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