1 ## -*- makefile-automake -*-
2 ## Copyright (C) 1995-2018 Free Software Foundation, Inc.
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)
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 ## ---------------- ##
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
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
40 && .
/pre-inst-env
$(PERL
) $(srcdir)/%D
%/help2man
--output
=$@
42 %D
%/aclocal
.1 %D
%/automake
.1:
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 ## ---------------------------- ##
58 %D
%/amhello
/configure.ac \
59 %D
%/amhello
/Makefile.am \
61 %D
%/amhello
/src
/main.c \
62 %D
%/amhello
/src
/Makefile.am
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 \
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
) \
97 { $(AM_V_P
) || exec
5>&2 >$$tmp 2>&1; } \
98 && $(abs_builddir
)/pre-inst-env
$(am_AUTORECONF
) -vfi \
100 && $(MAKE
) $(AM_MAKEFLAGS
) distcheck \
101 && $(MAKE
) $(AM_MAKEFLAGS
) distclean \
103 if
$(AM_V_P
); then
:; else \
104 echo
"$@: recipe failed." >&5; \
105 echo
"See file '`pwd`/$$tmp' for details" >&5; \
110 && rm -rf
$(amhello_configury
) $$tmp \
111 && mv
-f amhello-1.0.
tar.gz ..
114 # vim: ft=automake noet