1 ## This file is part of GNU m4
2 ## Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2 of the License, or
7 ## (at your option) any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 info_TEXINFOS = m4.texinfo
23 EXTRA_DIST = helptoman.pl
25 # Automake 1.4 does not support TAGS_FILES directly.
26 TAGS_FILES = $(info_TEXINFOS)
27 TAGS_DEPENDENCIES = $(TAGS_FILES)
28 ETAGS_ARGS = --language=none --regex='/@node \([^,]*\)/\1/' $(TAGS_FILES)
30 MAINTAINERCLEANFILES = Makefile.in m4.1
34 %.1: helptoman.pl $(top_builddir)/src/$*
35 @if test -f $(top_builddir)/src/$*; then \
36 echo "Updating the \`man' page \`$@'"; \
37 $(PERL) $(srcdir)/helptoman.pl $(top_builddir)/src/$* > $@-tmp; \
38 cmp -s $@-tmp $(srcdir)/$@ || cp $@-tmp $(srcdir)/$@; \
41 echo "WARNING: The \`man' page \`$@' cannot be updated yet."; \
42 echo " Retry once the program executable will be ready."; \