1 ## Process this file with automake to create Makefile.in -*-Makefile-*-
3 ## Makefile for Autoconf.
4 ## Copyright 2001 Free Software Foundation, Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
22 autoscan.1 config.guess.1 config.sub.1
24 man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
25 autoscan.x config.guess.x config.sub.x
27 EXTRA_DIST = $(man_MANS) $(man_aux) common.x
28 MAINTAINERCLEANFILES = $(man_MANS)
30 # Depend on configure.ac to get version number changes.
31 common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
32 autoconf.1: $(common_dep) $(srcdir)/autoconf.x $(top_srcdir)/autoconf.in
33 autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(top_srcdir)/autoreconf.in
34 autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(top_srcdir)/autoheader.in
35 autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(top_srcdir)/autoupdate.in
36 ifnames.1: $(common_dep) $(srcdir)/ifnames.x $(top_srcdir)/ifnames.in
37 autoscan.1: $(common_dep) $(srcdir)/autoscan.x $(top_srcdir)/autoscan.in
39 # Independent from this package.
40 config.guess.1: $(srcdir)/config.guess.x $(top_srcdir)/config/config.guess
41 config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config/config.sub
46 test -f $(top_builddir)/$* && prog=$(top_builddir)/$*; \
47 test -f $(top_srcdir)/$* && prog=$(top_srcdir)/$*; \
48 test -f $(top_srcdir)/config/$* && prog=$(top_srcdir)/config/$*; \
49 if test -n "$$prog"; then \
50 echo "Updating man page $@"; \
52 --include=$(srcdir)/$*.x \
53 --include=$(srcdir)/common.x \
56 echo "WARNING: The man page $@ cannot be updated yet."; \
57 echo " Retry once the corresponding executable is built."; \