2001-04-11 23:15:20 +08:00
|
|
|
## Process this file with automake to create Makefile.in -*-Makefile-*-
|
|
|
|
|
|
|
|
## Makefile for Autoconf.
|
|
|
|
## Copyright 2001 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software
|
|
|
|
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
## 02111-1307, USA.
|
|
|
|
|
2000-01-26 20:32:13 +08:00
|
|
|
man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
|
2000-12-07 00:02:58 +08:00
|
|
|
autoscan.1 config.guess.1 config.sub.1
|
2000-01-26 20:32:13 +08:00
|
|
|
|
|
|
|
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
|
2000-12-07 00:02:58 +08:00
|
|
|
autoscan.x config.guess.x config.sub.x
|
2000-01-26 20:32:13 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = $(man_MANS) $(man_aux) common.x
|
|
|
|
MAINTAINERCLEANFILES = $(man_MANS)
|
|
|
|
|
2001-07-17 15:53:06 +08:00
|
|
|
# Depend on configure.ac to get version number changes.
|
|
|
|
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
|
2001-05-22 20:32:18 +08:00
|
|
|
autoconf.1: $(common_dep) $(srcdir)/autoconf.x $(top_srcdir)/autoconf.in
|
|
|
|
autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(top_srcdir)/autoreconf.in
|
|
|
|
autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(top_srcdir)/autoheader.in
|
2001-02-26 14:56:04 +08:00
|
|
|
autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(top_srcdir)/autoupdate.in
|
2001-05-22 20:32:18 +08:00
|
|
|
ifnames.1: $(common_dep) $(srcdir)/ifnames.x $(top_srcdir)/ifnames.in
|
|
|
|
autoscan.1: $(common_dep) $(srcdir)/autoscan.x $(top_srcdir)/autoscan.in
|
2000-12-07 00:02:58 +08:00
|
|
|
|
|
|
|
# Independent from this package.
|
2001-05-22 22:43:48 +08:00
|
|
|
config.guess.1: $(srcdir)/config.guess.x $(top_srcdir)/config/config.guess
|
|
|
|
config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config/config.sub
|
2000-01-26 20:32:13 +08:00
|
|
|
|
|
|
|
SUFFIXES = .x .1
|
|
|
|
|
|
|
|
.x.1:
|
2000-12-15 16:25:09 +08:00
|
|
|
test -f $(top_builddir)/$* && prog=$(top_builddir)/$*; \
|
|
|
|
test -f $(top_srcdir)/$* && prog=$(top_srcdir)/$*; \
|
2001-05-22 22:43:48 +08:00
|
|
|
test -f $(top_srcdir)/config/$* && prog=$(top_srcdir)/config/$*; \
|
2000-12-15 16:25:09 +08:00
|
|
|
if test -n "$$prog"; then \
|
2000-01-26 20:32:13 +08:00
|
|
|
echo "Updating man page $@"; \
|
|
|
|
$(HELP2MAN) \
|
|
|
|
--include=$(srcdir)/$*.x \
|
|
|
|
--include=$(srcdir)/common.x \
|
2000-12-15 16:25:09 +08:00
|
|
|
--output=$@ $$prog; \
|
2000-01-26 20:32:13 +08:00
|
|
|
else \
|
|
|
|
echo "WARNING: The man page $@ cannot be updated yet."; \
|
|
|
|
echo " Retry once the corresponding executable is built."; \
|
|
|
|
fi
|