Bump to m4 1.4.19
[platform/upstream/m4.git] / doc / Makefile.am
1 ## Makefile.am - template for generating Makefile via Automake
2 ##
3 ## Copyright (C) 2006-2014, 2016-2017, 2020-2021 Free Software
4 ## Foundation, Inc.
5 ##
6 ## This file is part of GNU M4.
7 ##
8 ## GNU M4 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 3 of the License, or
11 ## (at your option) any later version.
12 ##
13 ## GNU M4 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 <https://www.gnu.org/licenses/>.
20 ##
21 ## This file written by Eric Blake <ebb9@byu.net>
22
23 info_TEXINFOS = m4.texi
24 m4_TEXINFOS = fdl-1.3.texi gpl-3.0.texi
25 man_MANS = $(srcdir)/m4.1
26 EXTRA_DIST = $(man_MANS) gendocs_template
27 MAINTAINERCLEANFILES = $(man_MANS) gendocs_template
28 SUFFIXES = .1
29 HELP2MAN = $(SHELL) $(top_srcdir)/build-aux/missing --run help2man
30
31 # Depend on ../.version for version, m4.c for usage text.  Do not depend on
32 # built m4 executable, since not everyone has help2man or perl.
33 # Build the man page once in the srcdir, rather than in every VPATH build
34 # dir, to match how automake builds info pages.  This is safe for 'make
35 # distcheck' since it is distributed pre-built.
36 $(srcdir)/m4.1: $(top_srcdir)/.version $(top_srcdir)/src/m4.c
37         @if test -x ../src/m4$(EXEEXT) ; then \
38           echo "Updating man page m4.1" ; \
39           $(HELP2MAN) --name="macro processor" --source='$(PACKAGE_STRING)' \
40             --info-page=m4 --output=$@ ../src/m4$(EXEEXT) ; \
41         else \
42           echo "WARNING: The \`man' page \`$@' cannot be updated yet."; \
43           echo "         Retry once the program executable is ready."; \
44         fi