* src/eval.c (ASSIGN): New enumerator.
[m4.git] / doc / Makefile.am
blob9e2dacf560238c7501b0436f3c0437a8264787f0
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.
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.
20 ## This file written by Eric Blake <ebb9@byu.net>
22 info_TEXINFOS = m4.texinfo
23 m4_TEXINFOS = fdl.texi
24 man_MANS = m4.1
25 EXTRA_DIST = $(man_MANS) gendocs_template
26 MAINTAINERCLEANFILES = $(man_MANS) gendocs_template
27 SUFFIXES = .1
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