autoconf/man/Makefile.am
Akim Demaille 7e58050fc5 1999-10-31 Akim Demaille <akim@epita.fr>
Create man pages for the executables.

	* Makefile.am (SUBDIRS): Add `man' and prepend `.' so that
	executables be built before help2man is run.
	* configure.in (AC_OUTPUT): Add man/Makefile.
	AC_MSG_ERROR, not AC_ERROR.
	Check for missing help2man.
	* man/Makefile.am: New file.
	* man/autoconf.x: Likewise.
	* man/autoreconf.x: Likewise.
	* man/autoheader.x: Likewise.
	* man/autoscan.x: Likewise.
	* man/autoupdate.x: Likewise.
	* man/ifnames.x: Likewise.
	* man/common.x: Likewise.
2000-01-26 12:32:13 +00:00

34 lines
1.2 KiB
Makefile

## Process this file with automake to produce Makefile.in -*-Makefile-*-
man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
autoscan.1
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
autoscan.x
EXTRA_DIST = $(man_MANS) $(man_aux) common.x
MAINTAINERCLEANFILES = $(man_MANS)
# Depend on configure.in to get version number changes.
$(man_MANS): $(top_srcdir)/configure.in $(srcdir)/common.x
autoconf.1: $(srcdir)/autoconf.x $(top_srcdir)/autoconf.sh
autoreconf.1: $(srcdir)/autoreconf.x $(top_srcdir)/autoreconf.sh
autoheader.1: $(srcdir)/autoheader.x $(top_srcdir)/autoheader.sh
autoupdate.1: $(srcdir)/autoupdate.x $(top_srcdir)/autoupdate.sh
ifnames.1: $(srcdir)/ifnames.x $(top_srcdir)/ifnames.sh
autoscan.1: $(srcdir)/autoscan.x $(top_srcdir)/autoscan.pl
SUFFIXES = .x .1
.x.1:
@if test -f $(top_builddir)/$*; then \
echo "Updating man page $@"; \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
--include=$(srcdir)/common.x \
--output=$@ \
$(top_builddir)/$*; \
else \
echo "WARNING: The man page $@ cannot be updated yet."; \
echo " Retry once the corresponding executable is built."; \
fi