maint: Update copyright years to 2018
[automake.git] / doc / local.mk
blobe76c04f5d4409817a182ed03c1c1a55bb563475a
1 ## -*- makefile-automake -*-
2 ## Copyright (C) 1995-2018 Free Software Foundation, Inc.
3 ##
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program. If not, see <https://www.gnu.org/licenses/>.
17 ## ---------------- ##
18 ## Documentation. ##
19 ## ---------------- ##
21 info_TEXINFOS = %D%/automake.texi %D%/automake-history.texi
22 doc_automake_TEXINFOS = %D%/fdl.texi
23 doc_automake_history_TEXINFOS = %D%/fdl.texi
25 man1_MANS = \
26 %D%/aclocal.1 \
27 %D%/automake.1 \
28 %D%/aclocal-$(APIVERSION).1 \
29 %D%/automake-$(APIVERSION).1
31 $(man1_MANS): $(top_srcdir)/configure.ac
33 CLEANFILES += $(man1_MANS)
34 # XXX: This script should be updated with 'fetch' target.
35 EXTRA_DIST += %D%/help2man
37 update_mans = \
38 $(AM_V_GEN): \
39 && $(MKDIR_P) %D% \
40 && ./pre-inst-env $(PERL) $(srcdir)/%D%/help2man --output=$@
42 %D%/aclocal.1 %D%/automake.1:
43 $(AM_V_GEN): \
44 && $(MKDIR_P) %D% \
45 && f=`echo $@ | sed 's|.*/||; s|\.1$$||; $(transform)'` \
46 && echo ".so man1/$$f-$(APIVERSION).1" > $@
48 %D%/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm
49 $(update_mans) aclocal-$(APIVERSION)
50 %D%/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm
51 $(update_mans) automake-$(APIVERSION)
53 ## ---------------------------- ##
54 ## Example package "amhello". ##
55 ## ---------------------------- ##
57 amhello_sources = \
58 %D%/amhello/configure.ac \
59 %D%/amhello/Makefile.am \
60 %D%/amhello/README \
61 %D%/amhello/src/main.c \
62 %D%/amhello/src/Makefile.am
64 amhello_configury = \
65 aclocal.m4 \
66 autom4te.cache \
67 Makefile.in \
68 config.h.in \
69 configure \
70 depcomp \
71 install-sh \
72 missing \
73 src/Makefile.in
75 dist_noinst_DATA += $(amhello_sources)
76 dist_doc_DATA = $(srcdir)/%D%/amhello-1.0.tar.gz
78 setup_autotools_paths = { \
79 ACLOCAL=aclocal-$(APIVERSION) && export ACLOCAL \
80 && AUTOMAKE=automake-$(APIVERSION) && export AUTOMAKE \
81 && AUTOCONF='$(am_AUTOCONF)' && export AUTOCONF \
82 && AUTOM4TE='$(am_AUTOM4TE)' && export AUTOM4TE \
83 && AUTORECONF='$(am_AUTORECONF)' && export AUTORECONF \
84 && AUTOHEADER='$(am_AUTOHEADER)' && export AUTOHEADER \
85 && AUTOUPDATE='$(am_AUTOUPDATE)' && export AUTOUPDATE \
86 && true; \
89 # We depend on configure.ac so that we regenerate the tarball
90 # whenever the Automake version changes.
91 $(srcdir)/%D%/amhello-1.0.tar.gz: $(amhello_sources) $(srcdir)/configure.ac
92 $(AM_V_GEN)tmp=amhello-output.tmp \
93 && $(am__cd) $(srcdir)/%D%/amhello \
94 && : Make our aclocal and automake avaiable before system ones. \
95 && $(setup_autotools_paths) \
96 && ( \
97 { $(AM_V_P) || exec 5>&2 >$$tmp 2>&1; } \
98 && $(abs_builddir)/pre-inst-env $(am_AUTORECONF) -vfi \
99 && ./configure \
100 && $(MAKE) $(AM_MAKEFLAGS) distcheck \
101 && $(MAKE) $(AM_MAKEFLAGS) distclean \
102 || { \
103 if $(AM_V_P); then :; else \
104 echo "$@: recipe failed." >&5; \
105 echo "See file '`pwd`/$$tmp' for details" >&5; \
106 fi; \
107 exit 1; \
110 && rm -rf $(amhello_configury) $$tmp \
111 && mv -f amhello-1.0.tar.gz ..
114 # vim: ft=automake noet