source: trunk/essentials/sys-devel/m4/doc/Makefile.am

Last change on this file was 3090, checked in by bird, 18 years ago

m4 1.4.8

File size: 1.8 KB
Line 
1## This file is part of GNU M4.
2##
3## Copyright (C) 2006 Free Software Foundation, Inc.
4##
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; either version 2 of the License, or
8## (at your option) any later version.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; see the file COPYING. If not, write to
17## the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18## Boston, MA 02110-1301, USA.
19##
20## This file written by Eric Blake <ebb9@byu.net>
21
22info_TEXINFOS = m4.texinfo
23m4_TEXINFOS = fdl.texi
24man_MANS = m4.1
25EXTRA_DIST = $(man_MANS) gendocs_template
26MAINTAINERCLEANFILES = $(man_MANS) gendocs_template
27SUFFIXES = .1
28
29# Depend on configure.ac for version, m4.c for usage text. Do not depend on
30# built m4 executable, since not everyone has help2man or perl.
31# Build the man page once in the srcdir, rather than in every VPATH build
32# dir, to match how automake builds info pages. This is safe for 'make
33# distcheck' since it is distributed pre-built.
34$(srcdir)/m4.1: $(top_srcdir)/configure.ac $(top_srcdir)/src/m4.c
35 @if test -x ../src/m4$(EXEEXT) ; then \
36 echo "Updating man page m4.1" ; \
37 $(SHELL) $(top_srcdir)/missing --run \
38 help2man --name="macro processor" --source=FSF \
39 --info-page=m4 --output=$@ ../src/m4$(EXEEXT) ; \
40 else \
41 echo "WARNING: The \`man' page \`$@' cannot be updated yet."; \
42 echo " Retry once the program executable is ready."; \
43 fi
Note: See TracBrowser for help on using the repository browser.