1 ## Makefile.am - template for generating Makefile via Automake
3 ## Copyright (C) 2009-2010, 2013 Free Software Foundation, Inc.
5 ## This file is part of GNU M4.
7 ## GNU M4 is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
12 ## GNU M4 is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
20 MAINTAINERCLEANFILES =
22 config_aux_dir = build-aux
24 info_TEXINFOS = m4.texi
25 m4_TEXINFOS = regexprops-generic.texi fdl-1.3.texi gpl-3.0.texi
26 dist_man_MANS = $(srcdir)/m4.1
27 EXTRA_DIST += gendocs_template
28 MAINTAINERCLEANFILES += gendocs_template
29 HELP2MAN = $(SHELL) $(top_srcdir)/$(config_aux_dir)/missing --run help2man
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: ../.version $(srcdir)/../src/main.c
35 @echo "Updating the \`man' page \`$@'"; \
36 $(HELP2MAN) --name="macro processor" --source=FSF \
37 --info-page=m4 --output=$@ ../src/m4$(EXEEXT)
39 TAGS_FILES = $(infos_TEXINFOS)
40 TAGS_DEPENDENCIES = $(TAGS_FILES)
41 ETAGS_ARGS = --language=none --regex='/@node \([^,]*\)/\1/' $(TAGS_FILES)
43 MAINTAINERCLEANFILES += $(dist_man_MANS)