autoconf/man/Makefile.am
Paul Eggert 8f29c5173b (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
Don't depend on .x file explicitly, since "make" does that for us.
Suggested by Stepan Kasal.
2004-12-10 23:57:19 +00:00

55 lines
2.1 KiB
Makefile

## Process this file with automake to create Makefile.in -*-Makefile-*-
## Makefile for Autoconf.
## Copyright (C) 2001, 2004 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.
dist_man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
autoscan.1 autom4te.1 config.guess.1 config.sub.1
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
autoscan.x autom4te.x config.guess.x config.sub.x
EXTRA_DIST = $(man_aux) common.x
MAINTAINERCLEANFILES = $(dist_man_MANS)
# Depend on configure.ac to get version number changes.
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
binsrcdir = $(top_srcdir)/bin
autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
# Independent from this package.
config.guess.1: $(top_srcdir)/config/config.guess
config.sub.1: $(top_srcdir)/config/config.sub
SUFFIXES = .x .1
.x.1:
echo "Updating man page $@"
PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
export PATH; \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
--include=$(srcdir)/common.x \
--output=$@ $*