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