doc: drop obsolete @setcontentsaftertitlepage
[m4/ericb.git] / doc / Makefile.am
blob59648e51e38158fcc991ded781679f8660cb1724
1 ## Makefile.am - template for generating Makefile via Automake
2 ##
3 ## Copyright (C) 2000-2001, 2003-2010, 2013-2014, 2017 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.
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.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 ## Written by Gary V. Vaughan <gary@gnu.org>
23 config_aux_dir  = build-aux
25 info_TEXINFOS   = m4.texi
26 m4_TEXINFOS     = regexprops-generic.texi fdl-1.3.texi gpl-3.0.texi
27 dist_man_MANS   = $(srcdir)/m4.1
28 EXTRA_DIST      = gendocs_template
29 MAINTAINERCLEANFILES = gendocs_template
30 HELP2MAN        = $(SHELL) $(top_srcdir)/$(config_aux_dir)/missing --run help2man
32 # Build the man page once in the srcdir, rather than in every VPATH build
33 # dir, to match how automake builds info pages.  This is safe for 'make
34 # distcheck' since it is distributed pre-built.
35 $(srcdir)/m4.1: $(top_srcdir)/.version $(top_srcdir)/src/main.c
36         @echo "Updating the \`man' page \`$@'"; \
37         $(HELP2MAN) --name="macro processor" --source=FSF \
38           --info-page=m4 --output=$@ $(top_srcdir)/src/m4$(EXEEXT)