1
## Process this file with automake to create Makefile.in -*-Makefile-*-
1
# Make Autoconf man pages.
3
## Makefile for Autoconf.
4
## Copyright 2001 Free Software Foundation, Inc.
3
## Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
6
5
## This program is free software; you can redistribute it and/or modify
7
6
## it under the terms of the GNU General Public License as published by
16
15
## You should have received a copy of the GNU General Public License
17
16
## along with this program; if not, write to the Free Software
18
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
dist_man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
22
autoscan.1 autom4te.1 config.guess.1 config.sub.1
24
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
25
autoscan.x autom4te.x config.guess.x config.sub.x
27
EXTRA_DIST = $(man_aux) common.x
17
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
$(srcdir)/autoconf.1 \
22
$(srcdir)/autoheader.1 \
23
$(srcdir)/autom4te.1 \
24
$(srcdir)/autoreconf.1 \
25
$(srcdir)/autoscan.1 \
26
$(srcdir)/autoupdate.1 \
28
$(srcdir)/config.guess.1 \
29
$(srcdir)/config.sub.1
31
EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x
28
32
MAINTAINERCLEANFILES = $(dist_man_MANS)
30
34
# Depend on configure.ac to get version number changes.
31
35
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
32
36
binsrcdir = $(top_srcdir)/bin
33
autoconf.1: $(common_dep) $(srcdir)/autoconf.x $(binsrcdir)/autoconf.in
34
autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(binsrcdir)/autoheader.in
35
autom4te.1: $(common_dep) $(srcdir)/autom4te.x $(binsrcdir)/autom4te.in
36
autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(binsrcdir)/autoreconf.in
37
autoscan.1: $(common_dep) $(srcdir)/autoscan.x $(binsrcdir)/autoscan.in
38
autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(binsrcdir)/autoupdate.in
39
ifnames.1: $(common_dep) $(srcdir)/ifnames.x $(binsrcdir)/ifnames.in
37
$(srcdir)/autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
38
$(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
39
$(srcdir)/autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
40
$(srcdir)/autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
41
$(srcdir)/autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
42
$(srcdir)/autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
43
$(srcdir)/ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
41
45
# Independent from this package.
42
config.guess.1: $(srcdir)/config.guess.x $(top_srcdir)/config/config.guess
43
config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config/config.sub
46
$(srcdir)/config.guess.1: $(top_srcdir)/build-aux/config.guess
47
$(srcdir)/config.sub.1: $(top_srcdir)/build-aux/config.sub
49
remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
51
MOSTLYCLEANFILES = $(srcdir)/*.t
56
@program=`expr "/$*" : '.*/\(.*\)'` && \
60
for dir in $(top_builddir)/bin $(top_builddir)/tests; do \
61
echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
62
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
48
65
echo "Updating man page $@"
49
PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
66
PATH="$(top_builddir)/tests$(PATH_SEPARATOR)$(top_srcdir)/build-aux$(PATH_SEPARATOR)$$PATH"; \
52
--include=$(srcdir)/$*.x \
53
70
--include=$(srcdir)/common.x \
71
--output=$@.t `echo '$*' | sed 's,.*/,,'`
72
if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
73
sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \