|
Packit |
47b4ca |
# Make Autoconf man pages.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# Copyright (C) 2001, 2004-2012 Free Software Foundation, Inc.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# This program is free software: you can redistribute it and/or modify
|
|
Packit |
47b4ca |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
47b4ca |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
47b4ca |
# (at your option) any later version.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
47b4ca |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
47b4ca |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
47b4ca |
# GNU General Public License for more details.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# You should have received a copy of the GNU General Public License
|
|
Packit |
47b4ca |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
dist_man_MANS = \
|
|
Packit |
47b4ca |
$(srcdir)/autoconf.1 \
|
|
Packit |
47b4ca |
$(srcdir)/autoheader.1 \
|
|
Packit |
47b4ca |
$(srcdir)/autom4te.1 \
|
|
Packit |
47b4ca |
$(srcdir)/autoreconf.1 \
|
|
Packit |
47b4ca |
$(srcdir)/autoscan.1 \
|
|
Packit |
47b4ca |
$(srcdir)/autoupdate.1 \
|
|
Packit |
47b4ca |
$(srcdir)/ifnames.1 \
|
|
Packit |
47b4ca |
$(srcdir)/config.guess.1 \
|
|
Packit |
47b4ca |
$(srcdir)/config.sub.1
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x
|
|
Packit |
47b4ca |
MAINTAINERCLEANFILES = $(dist_man_MANS)
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# Depend on .version to get version number changes.
|
|
Packit |
47b4ca |
common_dep = $(top_srcdir)/.version $(srcdir)/common.x
|
|
Packit |
47b4ca |
binsrcdir = $(top_srcdir)/bin
|
|
Packit |
47b4ca |
$(srcdir)/autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
|
|
Packit |
47b4ca |
$(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
|
|
Packit |
47b4ca |
$(srcdir)/autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
|
|
Packit |
47b4ca |
$(srcdir)/autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
|
|
Packit |
47b4ca |
$(srcdir)/autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
|
|
Packit |
47b4ca |
$(srcdir)/autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
|
|
Packit |
47b4ca |
$(srcdir)/ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# Independent from this package.
|
|
Packit |
47b4ca |
$(srcdir)/config.guess.1: $(top_srcdir)/build-aux/config.guess
|
|
Packit |
47b4ca |
$(srcdir)/config.sub.1: $(top_srcdir)/build-aux/config.sub
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
MOSTLYCLEANFILES = $(srcdir)/*.t
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
SUFFIXES = .x .1
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
.x.1:
|
|
Packit |
47b4ca |
@echo "Updating man page $@"
|
|
Packit |
47b4ca |
PATH="$(top_builddir)/tests$(PATH_SEPARATOR)$(top_srcdir)/build-aux$(PATH_SEPARATOR)$$PATH"; \
|
|
Packit |
47b4ca |
export PATH; \
|
|
Packit |
47b4ca |
$(HELP2MAN) \
|
|
Packit |
47b4ca |
--include=$*.x \
|
|
Packit |
47b4ca |
--include=$(srcdir)/common.x \
|
|
Packit |
47b4ca |
--source='$(PACKAGE_STRING)' \
|
|
Packit |
47b4ca |
--output=$@.t `echo '$*' | sed 's,.*/,,'`
|
|
Packit |
47b4ca |
if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
|
|
Packit |
47b4ca |
sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \
|
|
Packit |
47b4ca |
touch $@; \
|
|
Packit |
47b4ca |
else \
|
|
Packit |
47b4ca |
mv $@.t $@; \
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
rm -f $@*.t
|